Vikas Dubey
Vikas Dubey

Reputation: 83

Getting Location In Android Without Location Service

Is it possible to get location in android without enabling location service of android device ? I need to get location from nearest mobile tower, so is it possible ?

Upvotes: 1

Views: 313

Answers (1)

CoderP
CoderP

Reputation: 1371

You could use getLastKnownLocation() of FusedLocationAPI. This doesnot involve enabling location services. As per docs:

Using the Google Play services location APIs, your app can request the last known location of the user's device. In most cases, you are interested in the user's current location, which is usually equivalent to the last known location of the device

.

Upvotes: 2

Related Questions