novoda/Novocation — Issue #11: Novocation should provide a way to check if providers are enabled
Author: gnorsilva
Created: 2011-12-09 15:05:39+00:00
State: open

Something along these lines

private static boolean isNetworkProviderEnabled(LocationManager manager) {
return manager.isProviderEnabled(LocationManager.NETWORK_PROVIDER);
}

private static boolean isGPSProviderEnabled(LocationManager manager) {
return manager.isProviderEnabled(LocationManager.GPS_PROVIDER);
}