1

I am developing an app.

It's targetSdkVersion is 19.

But when i install my app on android 7.1 and revoke the permissions in settings, my app not behaves properly because of leak of permissions.so in order to solve the problem i add a test on needed permissions and try to use "ActivityCompat.requestPermissions" to ask for permissions when it tests failed, but now when i revoke needed permissions,

"ActivityCompat.requestPermissions" will not show dialog any more.and i am sure "ActivityCompat.requestPermissions" is excuted,i guess the reason is it's targetSdkVersion is lower than 23, so when "ActivityCompat.requestPermissions" checks for missing permissions, all the needed permissions are deemed granted but in fact some of them are revoked. the problem is not the same as ActivityCompat.requestPermissions not showing dialog box, it targetSdkVersion is 23 so that android runtime permission goes for it's situation, but the targetSdkVersion of my app is 19. so it is not suitable for android runtime permission. now what can i do to ask permissions? thanks for help.

Community
  • 1
  • 1

1 Answers1

0

discovered that the permission request popup is hidden by the app screen. resolved in the app I'm developing with

try {
    Thread.sleep(5000);
} catch (InterruptedException e) {
    ...
}
Al T.
  • 1