2011-06-20 8 views

答えて

8

は、uはウルの期間を完了した後にこれを与える

locationManager.removeUpdates(gpsl); 

を試してみてください、このコードを試してみてください

LocationManager locationManager =(LocationManager) getSystemService(Context.LOCATION_SERVICE); 
locationManager.requestLocationUpdates(
       LocationManager.GPS_PROVIDER, WLConstants.DELAY_HOUR, gpsl 
         .getMinDistance(), gpsl); 

とGPSを停止します。

0
try this code 

locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);  
    locationManager.requestLocationUpdates(
      LocationManager.NETWORK_PROVIDER, 
      1, 
      0, 
      myLocationListener 
    ); 
関連する問題