我可以打开/关闭GPS在应用程序中?由于水渠这么多的电池,我可以把它关闭了一段时间?或者有这个更好的解决办法......
Can I turn ON/OFF GPS in an application? As it drains so much of battery, can I turn it OFF for some time? OR there is better solution for this .....
试试这个...
locationManager.removeUpdates(myLocationListener); locationManager = null;