在M之下的Andr​​oid版本的Andr​​oid运行的权限? [英] Android runtime permissions on android versions below M?

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

问题描述

最近我的 OLA出租车应用,最新的更新后,要求定位在权限运行时。它没有打开位置设置屏幕,但仅仅通过点击是,该设备的我的位置(GPS)被打开和应用程序进行,而不要去的位置设置或设置屏幕。该功能即将到来的机器人M和可在跨国公司$ P $只PVIEW,所以我猜测它不能在这个时间点使用的设备。所以,这是怎么应用程序中实现此功能?

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?

推荐答案

这是的使用 SettingsApi 在播放服务SDK 7.0以上,到的显示位置设置对话框

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

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