Can't get location permission for Android app
问题 I have the following in my manifest: <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> I also have the location permission set in my phone's settings. Yes, GPS is enabled on the phone. Here, I check for the permission: if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.M) { int hasLocationPermission = mContext.checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION); Log.d(TAG,