
When developing a location application for Android, you can utilize GPS and Android Network Location Provider to acquire the user location. Although GPS is most accurate, it only works outdoors, it quickly consumes battery power, and doesn't return the location as quickly as users want. you can utilize GPS and Android Network Location Provider to acquire the user location. Although GPS is most accurate, it only works outdoors, it quickly consumes battery power, and doesn't return the location as quickly as users want.
Android Network Location Provider determines user location using cell tower and Wi-Fi signals , providing location information in a way that works indoors and outdoors, responds faster and consumes less battery power. To get the user's location in the application, you can use both GPS and the network location provider, or just one.
If you are using both NETWORK_PROVIDER and GPS_PROVIDER, then you need to request only the permission ACCESS_FINE_LOCATION ACCESS_COARSE_LOCATION includes permission only for NETWORK_PROVIDER
Depending on the resolution you use, they may produce different results.
check out these website and strategies used by android to determine location
depending on comments by Anil vk
network → (AGPS, CellID, WiFi MACID): This provider determines the location based on the availability of cellular points and WiFi access points. Results are retrieved using network search. One of the permissions required is android.permission.ACCESS_COARSE_LOCATION or android.permission.ACCESS_FINE_LOCATION.
The answer yes depends on the signal strength from the cell tower, in order to get accurate results, you can see this website to ensure accuracy and battery drain problems using different methods.
source share