if (app.mBMapManager == null) {
// app.mBMapManager = new BMapManager(this);
// app.mBMapManager.init(GowhereApplication.strKey,
// new GowhereApplication.MyGeneralListener());
// app.mBMapManager.start();
//
// }以上你的代码 位置改到
super.onCreate(savedInstanceState);和 setContentView(R.layout.activity_gomap);之间
// app.mBMapManager = new BMapManager(this);
// app.mBMapManager.init(GowhereApplication.strKey,
// new GowhereApplication.MyGeneralListener());
// app.mBMapManager.start();
//
// }以上你的代码 位置改到
super.onCreate(savedInstanceState);和 setContentView(R.layout.activity_gomap);之间
<application>
<activity></activity>
.... <service
android:name="com.baidu.location.f"
android:enabled="true"
android:process=":remote" >
</service>
</application>就可以了
不知道为啥? 单个Activity的 Context为什么不行。改为 getApplicationContext()就好了
+
mainfest service
okey!!!!Thanks
8楼+12楼getApplicationContext()
+
mainfest service