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.
相反,得到定位管理器在应用程序启动时,存储在应用程序中对它的引用对象。
应用推荐