-1

I built the Application Which take lat lng from gps but most of time it does not work is there Any way to get lat lng from internet..

locationManager.requestLocationUpdates(LocationManager.GPS_PROVIDER, MIN_TIME_BW_UPDATES, MIN_DISTANCE_CHANGE_FOR_UPDATES, locationListenerGps);
Nisarg
  • 1,358
  • 14
  • 30

1 Answers1

1

There is Mainly two ways to get current location.

1> Using GPS see this link for get location using GPS

In GPS it Sometime not give exactlocation so if your network enable then it try to get location from network provider. for eg. when you are in basement that time GPS sometime not give exact location.

2>Using Fused Location see this link for get Location using Fused location

Fused Location is mostly use when you want to continue get location in some time interval.

Community
  • 1
  • 1
Vishal Thakkar
  • 2,117
  • 2
  • 16
  • 33