Search code examples
androidgeolocationip-address

Android : How to location the application?


How to get the current location using IP Address?


Solution

  • Topic Obtaining user location over at http://developer.android.com covers obtaining location using the inbuilt functions in Android.

    It also states this:

    The Network Location Provider provides good location data without using GPS.

    And:

    Restrict a set of providers

    Depending on the environment where your application is used or the desired level of accuracy, you might choose to use only the Network Location Provider or only GPS, instead of both. Interacting with only one of the services reduces battery usage at a potential cost of accuracy.