Android: How to reset and download A-GPS data?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: How can I programmatically reset and download new A-GPS data in an Android application? In other words, how do the "Manage A-GPS state" tools work in the GPS Status & Toolbox app? 回答1: You should be able to use LocationManager.sendExtraCommand(String provider, String command, Bundle extras) . This will allow you to delete all or part of the GPS data, so it will redownload it. The docs are here , but a quick rundown of the arguments, referenced from this code (for a GPS Provider): For provider , use LocationManager.GPS_PROVIDER . For command