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 have to leave your activity in order to get permission to draw your screen above some other activities. That is something you cannot avoid.
In order to do that, you have to visit Settings via ACTION_MANAGE_OVERLAY_PERMISSION intent. Since you would like to have an user-friendly app, at the moment you need to ask for such permission, fire some dialog with explanation why you need that and with option for to accept and decline your requirement. On accept, fire the intent and start activity.