【问题标题】:Android runtime permissions on android versions below M?低于 M 的 android 版本的 Android 运行时权限?
【发布时间】:2015-08-22 07:15:42
【问题描述】:

最近我的ola cabs application,在最新更新后,在运行时请求位置权限。它没有打开位置设置屏幕,但只需单击是,设备的我的位置 (GPS) 已打开,应用程序继续进行,而无需进入位置设置或任何设置屏幕。此功能即将出现在 android M 中,并且仅在 MNC 预览版中可用,所以我猜它目前无法在设备中使用。那么这个应用程序是如何实现这个功能的呢?

【问题讨论】:

  • 可能在您禁用 GPS 时请求精确位置?

标签: android gps android-location android-permissions


【解决方案1】:

在 Play Services SDK 7.0+ 中是 using SettingsApi,到 display the location settings dialog

【讨论】:

猜你喜欢
  • 1970-01-01
  • 2016-03-25
  • 2016-02-05
  • 1970-01-01
  • 2017-07-25
  • 1970-01-01
  • 1970-01-01
  • 2017-09-24
  • 1970-01-01
相关资源
最近更新 更多