Android runtime permissions on android versions below M?

只谈情不闲聊 提交于 2019-12-01 06:57:21

问题


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?


回答1:


It is using SettingsApi in the Play Services SDK 7.0+, to display the location settings dialog.



来源:https://stackoverflow.com/questions/30698693/android-runtime-permissions-on-android-versions-below-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!