android how to stop gps

后端 未结 5 1274
无人共我
无人共我 2020-12-10 06:55

After launching listener by the following code is working fine.

LocationManager locationManager =(LocationManager) getSystemService(Context.LOCATION_SERVICE)         


        
5条回答
  •  再見小時候
    2020-12-10 07:37

    If you are using maps, you have to do:

    locationManager.removeUpdates(locationListener);
    
    mMap.setMylocationEnabled(false);
    

提交回复
热议问题