如果我有ACCESS_FINE_LOCATION已经,我可以省略ACCESS_COARSE_LOCATION? [英] If I have ACCESS_FINE_LOCATION already, can I omit 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?
推荐答案
<一个href="http://developer.android.com/guide/topics/location/obtaining-user-location.html">http://developer.android.com/guide/topics/location/obtaining-user-location.html
注:如果您使用的是两个NETWORK_PROVIDER和GPS_PROVIDER,那么你只需要请求ACCESS_FINE_LOCATION权限,因为它包括两个供应商的许可。 (许可ACCESS_COARSE_LOCATION仅包括NETWORK_PROVIDER许可。)
Note: If you are using both NETWORK_PROVIDER and GPS_PROVIDER, then you need to request only the ACCESS_FINE_LOCATION permission, because it includes permission for both providers. (Permission for ACCESS_COARSE_LOCATION includes permission only for NETWORK_PROVIDER.)
这篇关于如果我有ACCESS_FINE_LOCATION已经,我可以省略ACCESS_COARSE_LOCATION?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!