Search code examples
androidgoogle-maps-api-3gpswifi3g

Google maps provider, Wifi, 3g and GPS


SO, I want to be able to get my location either by gps or by 3g or wifi. For now, I have only managed to find tutorial about gps tracking, so, if anybody knows whre I can find example of provider tutorial for wifi and 3g?


Solution

  • found everything here, you can modify it how you see fit:

    https://github.com/googlesamples/android-play-location/blob/master/LocationUpdates/app/src/main/java/com/google/android/gms/location/sample/locationupdates/MainActivity.java