-4

I am doing an android application to track location, I can able to get location using GPS. But have doubt is there any other option to get the location(Using Network provider) without using the internet?

Kiran Benny Joseph
  • 6,755
  • 4
  • 38
  • 57
kannan P
  • 3
  • 2

2 Answers2

-1

When you ask Android about location you specify accuracy (Fine or Coarse). You don't know if Android will use GPS. GPS takes a lot of power, normally phone has optimization for that and try to calculate your location based on cell towers, wifi networks.

See for more details Location Strategies image

BayK
  • 118
  • 7
-1

Have you try LocationManager class in android. This class allow user to request location by gps and network provider both.

FusedLocationProvider is latest android api to get location

Praveen Mishra
  • 146
  • 1
  • 12