Location permission dialog wont show


#1

The Location permission dialog never show up in my app or the solution provided by BigNerdRanch.The situation is if the manifest declared

<uses-permission android:name=“android.permission.ACCESS_FINE_LOCATION” />

then the selfCheckPermission will always return granted, denied if you did not declare it.There is no way to alter it at user level once the app is installed.
Is this has something to do with the API level of your device or the version of appcompat?


#2

Am facing the same problem. Hope anyone here can help me too. Thanks in advance. Regards,


#3

I was having the same problem with the dialog box. That was because of the giant red error in LocatrFragment. requestLocationUpdates() needs to be in try/catch (Android Studio 3.0) , the following link can help you resolve that error.