2
使用LocationListener
开发位置感知Android应用程序时,是否必须在应用程序完成之前调用LocationManager.removeUpdates()
?Android LocationListener:removeUpdates是否必要?
或者更一般地说,在Looper
通过LocationManager.requestLocationUpdates()
退出之前是否必须致电LocationManager.removeUpdates()
?
LocationManager
是否自动发现Looper
不再有效,并且位置更新不再需要?如果是,如何?如果没有,它会一直盲目更新(并耗尽电池)吗?