android how to stop gps

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

    You could pass the parameter like this GPSLocationListener.this

    locationManager.removeGpsStatusListener(GPSLocationListener.this);
    

    the compile will not be wrong

提交回复
热议问题