Given this code
if (!locator.isProviderEnabled(LocationManager.GPS_PROVIDER)) {
//consider forcing user to turn on gps here
} else {
provider = LocationManager.GPS_PROVIDER;
}
What happens if the device does not have GPS. Right now if that provider isn’t enabled then it I will jump the user to their system settings to turn it on. But what if it isn’t there? How would this be handled. I dont want to necessarily lock those kind of users out of the app.
If the GPS provider is not available (or enabled), then try for whatever you can get:
This assumes that you prefer a rough position over no position at all.