Syed Sami
Syed Sami

Reputation: 23

Uses-permission for GPS Location

What uses-permission should I include to my Android manifest to access the current (GPS)location in my Application (Android Studio).

Upvotes: 1

Views: 1250

Answers (1)

animal
animal

Reputation: 1004

you need below permissions

android.permission.ACCESS_COARSE_LOCATION android.permission.ACCESS_FINE_LOCATION.

fine location will give you access to gps data.

Updated:

The documentation for ACCESS_COARSE_LOCATION states:

Allows an app to access approximate location derived from network location sources such as cell towers and Wi-Fi

So if you want some additional stuffs you can use this otherwise ACCESS_FINE_LOCATION will work for you.

Upvotes: 2

Related Questions