Samantha Withanage Samantha Withanage - 1 year ago 123
Android Question

Android location permissions

In my Android application I'm willing to use GPS locations.

  1. What are the main permissions that I should included in android
    file in order to use GPS locations.

  2. In case of lost the GPS signal strength, is there any way to triangulate the position using mobile networks.

Thank you!

Answer Source

The main permissions you need are android.permission.ACCESS_COARSE_LOCATION or android.permission.ACCESS_FINE_LOCATION.

Only fine location will allow you access to gps data, and allows you access to everything else coarse location gives. You can use the methods of the LocationManager to acquire location data from gps and cell tower sources already, you do not have to work out this information yourself.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download