I'm currently trying to adapt my application to the new Android M permission model.
I collect all the necessary permissions and then run
Log.i("Permissions", "Requesting permissions: " + permissions); requestPermissions(requiredPermissions.toArray(new String[requiredPermissions.size()]), requestCodeForPermissions);
requiredPermissions contains the permissions I need as android.permission.WRITE_EXTERNAL_STORAGE .
This procedure definitely executes, since I have a log line in logcat:
08-07 12:52:46.469: I/Permissions(1674): Requesting permissions: android.permission.RECEIVE_BOOT_COMPLETED; android.permission.WRITE_EXTERNAL_STORAGE
But the permissions dialog is never displayed, not to mention the call to onRequestPermissionsResult ().
What am I doing wrong? Based on some lessons, I found that nothing was missing. I have only an emulator for testing, there is no physical device. This is the screen of the settings screen: Image
Maybe something else is worth mentioning: if I try to open an overview of installed applications from the main screen, I get only launcher3 has exited . I am not sure if this could be related.
Does anyone have an idea why he is not showing?
android android-6.0-marshmallow permissions
Jens Aug 07 '15 at 13:06 2015-08-07 13:06
source share