2017-01-23 53 views
0

當我使用Android 6.0+在Android Studio上安裝和啓動我的應用程序時,我遇到了定位服務即使在狀態欄中的設備上啓用了位置服務,也可以在專門針對我的應用的手機設置中禁用。這是相對於應用程序的授權菜單地理位置:Android 6.0+:爲我的應用程序禁用地理定位(即使在手機設置和清單中啓用)

enter image description here

我的清單:

<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/> 
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> 
<uses-feature android:name="android.hardware.location.gps" 
       android:required="false"/> 

搖籃依賴關係:

compile 'com.google.android.gms:play-services-location:10.0.1' 

如何解決這個問題的任何想法?

回答

相關問題