同时,这听起来像你要参考你每次想打电话给定位管理器。
Also, it sounds like you're getting a reference to the LocationManager each time you want to call it.
相反,得到定位管理器在应用程序启动时,存储在应用程序中对它的引用对象。
Instead, get the LocationManager when your application first starts up, and store the reference to it in your application object.
调用者使用使用命名目录来定位资源管理器。
The caller USES the naming directory to locate the resource manager.
应用推荐