BitsAndBytes Active Member Licensed User Jun 21, 2017 #1 I have an app that i am testing on android 6.0.1 and each time i install try i uninstall it and install it again android system turn of my Storage Permission and my app crash. Then i must go back to control panel and enable the app storage permission manual. This happens only with android 6+ Is there any way for my app to check if you have Storage Permission and if not to ask you this permission with a message? Thank you Attachments Screenshot_2017-06-21-15-47-32-875_com.google.android.packageinstaller.png 23.8 KB · Views: 419
I have an app that i am testing on android 6.0.1 and each time i install try i uninstall it and install it again android system turn of my Storage Permission and my app crash. Then i must go back to control panel and enable the app storage permission manual. This happens only with android 6+ Is there any way for my app to check if you have Storage Permission and if not to ask you this permission with a message? Thank you
DonManfred Expert Licensed User Longtime User Jun 21, 2017 #2 BitsAndBytes said: This happens only with android 6+ Is there any way for my app to check if you have Storage Permission and if not to ask you this permission with a message? Click to expand... Set targetsdk to 22 or lower. Starting from 23 you need to use Runtimepermission. Once request4ed the Permission you dont need to answer again. Even after a update. Deinstalling the app will remove the permission too. So if you install it again you need to anwer the permission once the app is started. See Runtimepermission Tutorial about more informations... Upvote 0
BitsAndBytes said: This happens only with android 6+ Is there any way for my app to check if you have Storage Permission and if not to ask you this permission with a message? Click to expand... Set targetsdk to 22 or lower. Starting from 23 you need to use Runtimepermission. Once request4ed the Permission you dont need to answer again. Even after a update. Deinstalling the app will remove the permission too. So if you install it again you need to anwer the permission once the app is started. See Runtimepermission Tutorial about more informations...
Erel B4X founder Staff member Licensed User Longtime User Jun 21, 2017 #3 BitsAndBytes said: Is there any way for my app to check if you have Storage Permission and if not to ask you this permission with a message? Click to expand... Runtime Permissions (Android 6.0+ Permissions) Upvote 0
BitsAndBytes said: Is there any way for my app to check if you have Storage Permission and if not to ask you this permission with a message? Click to expand... Runtime Permissions (Android 6.0+ Permissions)