android how to stop gps

后端 未结 5 1286
无人共我
无人共我 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:32

    You have to pass the instance to your GPSLocationListener go the removeGpsStatusListener method and not the class name.

提交回复
热议问题