I need to make an Android app in which I need to find the current location of the user. To do this, I first use the GPS provider, but if it is not available, I return to the network provider. Now on my phone there were cases when even the network provider did not work, and the operator network_enabled = lm .isProviderEnabled (LocationManager.NETWORK_PROVIDER);
gives a false value.
My question
I can still make phone calls, so my network provider is working fine. What do I need to know in what conditions does the network provider not work? what are the possible scenarios when the network provider on my Android device is not working to provide me with my coordinates.
early
source share