I'm making a test project to learn how to use the Location in Android.
I want to use WIFI/3G as default provider, but if there are not working (Airplane mode set ON for example), I want to switch to GPS.
My idea is check the NETWORK_PROVIDER status. If it not available, check the GPS_PROVIDER status. If this also not available, not use location and show a message.
To do that, I need to check the current Provider Status, but I can't find the way. There is any way to do that?
I had try with isProviderEnabled, but that method only tell me if the Provider can or can't be used, but not if really enabled.
The ideal idea is to do that before call requestLocationUpdates
Thanks and sorry for my english