BaiDuMapApiDemo
代码说明:
public class BMapApiDemoApp extends Application { static BMapApiDemoApp mDemoApp; // 百度MapAPI的管理类 BMapManager mBMapMan = null; // 授权Key // 申请地址:http://developer.baidu.com/map/android-mobile-apply-key.htm String mStrKey = "866FCA5A50327A48A9857274B5B0FA066DDCDF90"; boolean m_bKeyRight = true; // 授权Key正确,验证通过 // 常用事件监听,用来处理通常的网络错误,授权验证错误等 static class MyGeneralListener implements MKGeneralListener { @Override public void onGetNetworkState(int iError) { Log.d("MyGeneralListener", "onGetNetworkState error is " + iError); Toast.makeText(BMapApiDemoApp.mDemoApp.getApplicationContext(), "您的网络出错啦!", Toast.LENGTH_LONG).show(); } @Override public void onGetPermissionState(int iError) { Log.d("MyGeneralListener", "onGetPermissionState error is " + iError); if(iError
下载说明:请别用迅雷下载,失败请重下,重下不扣分!