android-6.0-marshmallow
How Do You Test the Android 6.0 Full-Backup Behavior?
After having discussed and tested various scenarios (refer to comments below the question), I’ve decided to combine and write up those results into an answer. In reality, this doesn’t actually solve the problem presented, but it will answer the question of “How do you successfuly use the command-line tools (or anything else) to test the … Read more
Request Location Permissions from a service Android M
You can not request permission via a service, since a service is not tied to a UI, this kind of makes sense. Since a service context is not an activity the exception you are getting makes sense. You can check if the permission is available in a service and request the permission in an activity … Read more
Android 6.0 permission.GET_ACCOUNTS
That is because of Permission Groups. Basically, permissions are placed under different groups and all permissions from that group would be granted if one of them is granted. Eg. Under “Contacts” , there is write/read contacts and get accounts, so when you ask for any of those, the popup asks for Contacts permissions. Read through: … Read more
Calling DialogFragment’s show() from within onRequestPermissionsResult() causes IllegalStateException in Marshmallow
The bug is accepted and will be fixed, however, I strongly disagree with the postDelayed and timer solutions. The best way to do this would be introducing a state flag in the Activity, in which you set in the callback, and use in onResume or similar. For example: private boolean someFlag; public void onRequestPermissionsResult(int requestCode, … Read more
ALLOW button not working after update
EDIT: It has been marked as a defect in the last android and it will be fix in a future release of the OS. Bug report EDIT 2: File manager email me that they fix this feature in their app. I have not try File Manager anymore, but if you update the app it should … Read more