应用程序 是不是 一开始 不能直接就
LocationManager locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);
因为 没有
ServiceManager.addService(Context.LOCATION_SERVICE, new LocationManagerService(context));
在
new LocationManagerService(context)的时候 ,会 初始化 gps线程 ,并打开设备。
这样的话: addservice 这个动作 是谁来做???应用程序本身么 ,好像网上的例子 都没有这一步。
------解决方案--------------------
明显是Framework帮你做了..