低于 M 的 android 版本的 Android 运行时权限? [英] Android runtime permissions on android versions below M?

查看:24
本文介绍了低于 M 的 android 版本的 Android 运行时权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

Recently my ola cabs application, after the latest update, asked for location permission at runtime. It did not open the location settings screen but just by clicking on yes, my location (GPS) of the device was turned on and the application proceeded without going to location settings or any settings screen. This feature was about to come in android M and is available on the MNC preview only, so I am guessing it cannot be used in devices at this point of time. So how is this application implementing this feature?

推荐答案

在 Play Services SDK 7.0+ 中使用 SettingsApi显示位置设置对话框.

这篇关于低于 M 的 android 版本的 Android 运行时权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆