I need to disable the touch of my android device when my app is running.
Currently I am using
getWindow().setFlags(WindowManager.LayoutParams.FLAG_NOT_TOUCHABLE)
But when call or other app notifications comes, they are touchable. I want to disable all touches.
Please help me if anybody have such solution.
I want to enable again the touch by power key action.