0

I want an image of my user's location to show up on a map every time he/she logs in - and to only update the location after the user exits the app then reopens it. While he is in the page with the map the location should stay constant.

Can I achieve this without GPS? I haven't been able to find much about it online.

Thanks in advance for any insight

Gopal Singh Sirvi
  • 4,539
  • 5
  • 33
  • 55
eyes enberg
  • 556
  • 1
  • 8
  • 30
  • yes.You can get the user location based on Network Provider.Instead of using GPS_PROVIDER in LocationManager use NETWORK_PROVIDER.but it will give location of the user approximately. if you need it accurately you need to use GPS_PROVIDER – Vishwa Jul 15 '15 at 12:26

3 Answers3

0

This is a similar post where it's explained how to use network instead of GPS

Community
  • 1
  • 1
slorangex
  • 1,334
  • 2
  • 12
  • 25
0

If you have the users IP addresses then you should be able to get the location of the IP by using a service (e.g. https://www.iplocation.net/). But this location is of course not very accurate especially for example when users are located for example in country A but use a VPN in country B (then the location inside country B will be shown to you) but it may be suitable for your scenario.

Patric
  • 2,789
  • 9
  • 33
  • 60
0

I think Skyhook is what you are looking for.

Booyaches
  • 1,669
  • 4
  • 27
  • 40