我必须将哪个权限添加到清单才能获得gps传感器读数?

Jan*_*usz 2 permissions android location manifest

哪个权限需要我的应用程序才能访问Android上用户的位置?

Sep*_*phy 9

你需要:

<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
Run Code Online (Sandbox Code Playgroud)

在AndroidManifest.xml中的应用程序标记之外

  • FINE_LOCATION将为您提供GPS或android.permission.ACCESS_COARSE_LOCATION,我认为如果可用,将返回GPS坐标.如果不是它将使用wifi或cell-id http://developer.android.com/reference/android/Manifest.permission.html#ACCESS_COARSE_LOCATION (3认同)