android - how to fix screen overlay detected programmatically -


in app ask permission access sms in android sdk 23 (runtime permission) problem dialog screen overlay showed , access not granted .i disabled apps overlay nothing changed . found link not helped

and question how can fix programmatically ?

ok ,

finally found solution ,i search web :d , can't find useful . answer : when ask new permission don't ever ever else showing toast or.... in case restart app , ask next permission use this code restart app ,

good luck.


Comments

Popular posts from this blog

How to use SUM() in MySQL for calculated values -

ios - IBOutlet for image button not correctly referencing button after recreating outlet -

java - AEM: 403 Forbidden occurs when call a Post servlet -