List of usage examples for android.location LocationManager clearTestProviderStatus
public void clearTestProviderStatus(String provider)
From source file:org.cowboycoders.cyclisimo.turbo.TurboService.java
private void disableLocationProvider(String provider) { LocationManager locationManager = (LocationManager) getApplicationContext() .getSystemService(Context.LOCATION_SERVICE); if (locationManager.isProviderEnabled(provider)) { try {//from w w w.j a v a 2 s .c o m // is this the same as the below? probably locationManager.setTestProviderEnabled(provider, false); locationManager.clearTestProviderEnabled(provider); locationManager.clearTestProviderLocation(provider); locationManager.clearTestProviderStatus(provider); locationManager.removeTestProvider(provider); } catch (SecurityException e) { // ignore } } }