The development of mice in Baidu map development problems

I'm Baidu Developer Center in http://developer.baidu.com/map/sdkandev-2.htm, according to his description of the steps, a step by step to paste to my project, although warning, but no error, but the run time always stops unexpectedly, I very want to know this is why. .
The 1.activity_main.xml code is as follows
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TextView android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="hello world" />
<com.baidu.mapapi.map.MapView android:id="@+id/bmapsView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:clickable="true" />
</LinearLayout>
2.AndroidManifest.xml code
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="lxy.no1.gps"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="18" />

<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name="lxy.no1.gps.MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".MyMapActivity"
android:screenOrientation="sensor"
android:configChanges="orientation|keyboardHidden">
</activity>
</application>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:resizeable="true"
android:anyDensity="true"/>

<!Using network functionality required permissions,>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE">
</uses-permission>
<uses-permission android:name="android.permission.INTERNET">
</uses-permission>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE">
</uses-permission>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE">
</uses-permission>
<!- SDK offline map and cache functions need to read and write the external memory -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE">
</uses-permission>
<!-- get set information and details page call requires the following permissions,>
<uses-permission android:name="android.permission.READ_PHONE_STATE">
</uses-permission>
<uses-permission android:name="android.permission.CALL_PHONE">
</uses-permission>
<!Using the positioning function required permissions, demo has integrated SDK Baidu positioning, positioning function can be removed without the use of the following 6:>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION">
</uses-permission>
<permission android:name="android.permission.BAIDU_LOCATION_SERVICE">
</permission>
<uses-permission android:name="android.permission.BAIDU_LOCATION_SERVICE">
</uses-permission>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION">
</uses-permission>
<uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION">
</uses-permission>
<uses-permission android:name="android.permission.ACCESS_GPS"/>
</manifest>
The 3.MyMapActivity.java code is as follows
package lxy.no1.gps;

import android.app.Activity;
import android.content.res.Configuration;
import android.os.Bundle;
import android.view.Menu;
import android.widget.FrameLayout;
import android.widget.Toast;
import com.baidu.mapapi.BMapManager;
import com.baidu.mapapi.map.MKMapViewListener;
import com.baidu.mapapi.map.MapController;
import com.baidu.mapapi.map.MapPoi;
import com.baidu.mapapi.map.MapView;
import com.baidu.platform.comapi.basestruct.GeoPoint;

public class MyMapActivity extends Activity{
BMapManager mBMapMan = null;
MapView mMapView = null;
@Override
public void onCreate(Bundle savedInstanceState){
super.onCreate(savedInstanceState);
mBMapMan=new BMapManager(getApplication());
mBMapMan.init("My Key", null);
//Note: please try setContentView before initializing the BMapManager object, otherwise it will error
setContentView(R.layout.activity_main);
mMapView=(MapView)findViewById(R.id.bmapsView);
mMapView.setBuiltInZoomControls(true);
//Enable built-in zoom control
MapController mMapController=mMapView.getController();
// Control of mMapView, it can be used to control and drive the pan and zoom
GeoPoint point =new GeoPoint((int)(39.915* 1E6),(int)(116.404* 1E6));
//With the latitude and longitude of constructing a GeoPoint unit is given, the micro degree (degree of * 1E6)
mMapController.setCenter(point);//Sets the center point of map
mMapController.setZoom(12);//Set map zoom level
}
@Override
protected void onDestroy(){
mMapView.destroy();
if(mBMapMan!=null){
mBMapMan.destroy();
mBMapMan=null;
}
super.onDestroy();
}
@Override
protected void onPause(){
mMapView.onPause();
if(mBMapMan!=null){
mBMapMan.stop();
}
super.onPause();
}
@Override
protected void onResume(){
mMapView.onResume();
if(mBMapMan!=null){
mBMapMan.start();
}
super.onResume();
}
}

Started by Kirk at February 12, 2016 - 4:09 PM

With the log.

Posted by Hale at February 26, 2016 - 4:55 PM

I can ah, you do not know what the problem is.

Posted by Fabian at March 10, 2016 - 5:44 PM

Your KEY is empty, is right, for you Baidu map SDK version is 1.3.5.?

Posted by Virgil at December 23, 2016 - 2:05 PM

mBMapMan.init("My Key", null);
Here to Baidu developers there for your own key.

Posted by Bernie at January 03, 2017 - 3:09 PM

I use V2.3.0, I have used my key, but is not,, I apply the key to fill out the application name, a little conflict with the official website of the steps., , ,

Posted by Kirk at January 04, 2017 - 2:56 PM

In the download to mobile phone Catlog proposed a lot of mistakes,,, how sticky. . ?

Posted by Kirk at January 05, 2017 - 4:00 PM

Well,, logcat, , ,

Posted by Kirk at January 12, 2017 - 3:27 PM