How to detect Location Provider ? GPS or Network Provider
I'm using Fused Location Provider for location updates in my app. According to Fused Location Provided documentation, it uses all available resources (e.g. Wifi, GPS, Cell tower, etc..) to optimize location. But i want to know, is there any way to detect that current location update is from GPS Provider or Network provider, in Location update receiver ? nipun kumar You can check the location provider by location.getProvider() from the location you are getting. Either you are using fused location api or a previous one, you will get the location from locationManager.getLastKnownLocation or