本文介绍了如果我有ACCESS_FINE_LOCATION已经,我可以省略ACCESS_COARSE_LOCATION?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个GPS应用程序,已经要求ACCESS_FINE_LOCATION许可清单,现在我要添加库(MoPub)需要ACCESS_COARSE_LOCATION。
I have a GPS app that already requests ACCESS_FINE_LOCATION permission in the manifest, now I want to add a library (MoPub) that requires ACCESS_COARSE_LOCATION.
我是正确的假设ACCESS_FINE_LOCATION就足够了,我可以离开了ACCESS_COARSE_LOCATION从我的表现?
Am I correct in assuming that ACCESS_FINE_LOCATION is enough, and I can leave out ACCESS_COARSE_LOCATION from my manifest?
推荐答案
http://developer.android.com/guide/topics/location/obtaining-user-location.html
注:如果您使用的是两个NETWORK_PROVIDER和GPS_PROVIDER,那么你只需要请求ACCESS_FINE_LOCATION权限,因为它包括两个供应商的许可。 (许可ACCESS_COARSE_LOCATION仅包括NETWORK_PROVIDER许可。)
这篇关于如果我有ACCESS_FINE_LOCATION已经,我可以省略ACCESS_COARSE_LOCATION?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!