通過以下代碼啓動偵聽器後工作正常。android如何停止gps
LocationManager locationManager =(LocationManager) getSystemService(Context.LOCATION_SERVICE);
locationManager.requestLocationUpdates(
LocationManager.GPS_PROVIDER, WLConstants.DELAY_HOUR, gpsl
.getMinDistance(), gpsl);
一段時間後,我用下面的代碼
locationManager.removeUpdates(this);
停止監聽,但問題是,它仍然在尋找我的GPS的任何解決方案???如何阻止gps?
記住接受你以前提出的問題的答案 - 迄今爲止你只有45%的接受度。這樣更多的人可能會繼續回答問題。 :) – 2010-01-06 14:51:38