Draw and hook guestures without stopping app underneith Draw and hook guestures without stopping app underneith android android

Draw and hook guestures without stopping app underneith


Using a combination of WindowManager.LayoutParams.FLAG_WATCH_OUTSIDE_TOUCH and the solution to this question, I was able to do what you are trying to do without freezing the app the background.

Don't forget to include the uses-permission tag 'android.permission.SYSTEM_ALERT_WINDOW'.