-2

I want to get the Lat/Long of a device when its GPS is turned off. I tried few tutorials but am not able to get the Location when GPS is off. Is there any way to do it?? or GPS is compulsory? Looking for help. Thanks in advance.

MUKUND U
  • 44
  • 6

1 Answers1

0

once you have implemented the necessary location code. just add the following

Location loc = locationManager.getLastKnownLocation(locationManager.NETWORK_PROVIDER);
Janwilx72
  • 502
  • 4
  • 18