Which permission do I have to add to the manifest to get gps sensor readings?

12,280

you need:

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

outside the application tag in your AndroidManifest.xml

Share:
12,280
SHRISH M
Author by

SHRISH M

Updated on June 05, 2022

Comments

  • SHRISH M
    SHRISH M almost 2 years

    Which permission needs my application to get access to the location of the user on Android?

  • Rakshith N
    Rakshith N about 14 years
    FINE_LOCATION will get you GPS or android.permission.ACCESS_COARSE_LOCATION which i think will return GPS coords if available. if not it will use wifi or cell-id developer.android.com/reference/android/…