Because of the internship needs, now contact Baidu Map API
All according to Baidu's official website configuration
If there is a copy in the middle of the configuration also shows errors, such as androidmanifest.xml inside the
<uses-permission android:name= "Android.permission.GET_ACCOUNTS"/> <uses-permission android:name= "Android.permission.USE_CREDENTIALS"/> <uses-permission android:name= "Android.permission.MANAGE_ACCOUNTS"/> <uses-permission android:name= "Android.permission.AUTHENTICATE_ACCOUNTS"/> <uses-permission android:name= "Android.permission.ACCESS_NETWORK_STATE"/> <uses-permission android:name= "Android.permission.INTERNET"/> < Uses-permission android:name= "Com.android.launcher.permission.READ_SETTINGS"/> <uses-permission android:name= "Android.permission.CHANGE_WIFI_STATE"/> < Uses-permission android:name= "Android.permission.ACCESS_WIFI_STATE"/> < Uses-permission android:Name= "Android.permission.READ_PHONE_STATE"/> <uses-permission android:name= " Android.permission.WRITE_EXTERNAL_STORAGE "/> <uses-permission android:name=" Android.permission.BROADCAST_STICKY "/> <uses-permission android:name=" Android.permission.WRITE_SETTINGS "/> <uses-permission android:name=" Android.permission.READ_PHONE_STATE "/>
You can use the UI on the Eclipse band to join.
In addition, Eclipse Auto-generated app is divided into two layout xml, decisively delete fragment
Then according to the official website of the demo can make the first result
The first show was the Tiananmen Square in Beijing.
If you need to locate the service, in addition to using the official website demo Location Code, but also in the Androidmanifest.xml to join
<application. ><service android:name= "COM.BAIDU.LOCATION.F" android:enabled= "true" android:proces s= ": Remote" > </service></application>
The change of state on the map is now made by
Mapstatusupdate U = mapstatusupdatefactory.newlatlngzoom (ll, (float) 19.0);
As if the above sentence changed, before on the Internet to find several changes in the map scale, as if all the old API to use