Note that this is not the recommended usage for runtime permissions.
1. You should only request permissions when you need to.
2. You don't need to treat devices differently based on the version. You can always call CheckAndRequest. The PermissionResult will fire immediately on Android 22-.
Are the permissions listed in the manifest editor?
Can you upload your project?
Hi Erel
Thanks for the quick reply.
I cannot upload the project.
1. The permissions are listed in the manifest file.
2. In relation to the usage of permissions being requested, they must be set before the user can use the app. The reason being this is personal safety app and if the user activates the app in an situation where they cannot set the permissions to use the locations services to get their GPS position, the app is no good.
3. In relation to point 2 you make, requesting permissions does behave differently on 23 and 24. On 23 all the requests are presented. On 24 the first on is requested, and the other are 'ignored', the result event occurs be with no request permission string.
I have come up with a method that now works on 24, works on the emulator, will test on real device later.
Regards
John.