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?