How can I enable screen overlay permission by default while install application.
Now I facing some problem, when capture image asking run time permission some device
You don't have to enable the screen overlay permission instead before asking for permission, Show your Dialog box explaining the user why you need the permission and requesting them to accept the permission. if user chooses no don't show the permission dialog. else show him the permission dialog. This helps you to avoid the screen overlay permission.