checkSelfPermission() doesn't seem to work for WRITE_EXTERNAL_STORAGE
问题 I have the app that uses <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> It's automatically granted on Android 6.0, but I can revoke it in the settings. Wanted to check if it's granted in case user revokes it, so I do this: int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE); if (permissionCheck == PackageManager.PERMISSION_GRANTED) { //OK permission granted, let's do stuff } else { //I'll better ask for