List of usage examples for android.location LocationProvider TEMPORARILY_UNAVAILABLE
int TEMPORARILY_UNAVAILABLE
To view the source code for android.location LocationProvider TEMPORARILY_UNAVAILABLE.
Click Source Link
From source file:com.androzic.location.LocationService.java
@Override public void onStatusChanged(String provider, int status, Bundle extras) { if (LocationManager.GPS_PROVIDER.equals(provider)) { switch (status) { case LocationProvider.TEMPORARILY_UNAVAILABLE: case LocationProvider.OUT_OF_SERVICE: tearTrack();/*from www.jav a2s . co m*/ updateNotification(); break; } } }
From source file:eu.basicairdata.graziano.gpslogger.GPSApplication.java
@Override public void onStatusChanged(String provider, int status, Bundle extras) { // This is called when the GPS status changes switch (status) { case LocationProvider.OUT_OF_SERVICE: //Log.w("myApp", "[#] GPSApplication.java - GPS Out of Service"); gpsunavailablehandler.removeCallbacks(unavailr); // Cancel the previous unavail countdown handler GPSStatus = GPS_OUTOFSERVICE;/*from w w w .java 2 s . c o m*/ EventBus.getDefault().post(EventBusMSG.UPDATE_FIX); //Toast.makeText( getApplicationContext(), "GPS Out of Service", Toast.LENGTH_SHORT).show(); break; case LocationProvider.TEMPORARILY_UNAVAILABLE: //Log.w("myApp", "[#] GPSApplication.java - GPS Temporarily Unavailable"); gpsunavailablehandler.removeCallbacks(unavailr); // Cancel the previous unavail countdown handler GPSStatus = GPS_TEMPORARYUNAVAILABLE; EventBus.getDefault().post(EventBusMSG.UPDATE_FIX); //Toast.makeText( getApplicationContext(), "GPS Temporarily Unavailable", Toast.LENGTH_SHORT).show(); break; case LocationProvider.AVAILABLE: gpsunavailablehandler.removeCallbacks(unavailr); // Cancel the previous unavail countdown handler //Log.w("myApp", "[#] GPSApplication.java - GPS Available: " + _NumberOfSatellites + " satellites"); break; } }
From source file:com.kll.collect.android.activities.FormEntryActivity.java
@Override public void onStatusChanged(String provider, int status, Bundle extras) { switch (status) { case LocationProvider.AVAILABLE: break;/*from w ww . j av a 2s . c om*/ case LocationProvider.OUT_OF_SERVICE: break; case LocationProvider.TEMPORARILY_UNAVAILABLE: break; } }