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.
Asked
Active
Viewed 1,581 times
-2
-
you can get location using GPS and NETWORK. NEtwork location is approx. – Divyesh Patel Mar 08 '17 at 09:43
-
GPS is not mandatory, you can find the location of a phone using the network provider. Accuracy is just offered up in this instance – Janwilx72 Mar 08 '17 at 09:43
-
Can I get any instance of it? @Janwilx72 – MUKUND U Mar 08 '17 at 09:45
1 Answers
0
once you have implemented the necessary location code. just add the following
Location loc = locationManager.getLastKnownLocation(locationManager.NETWORK_PROVIDER);

Janwilx72
- 502
- 4
- 18