Details: I would like to add a code drawn line (like you draw with canvas/paint) and display it over other applications.
I currently have an application that allows me to display an image over other application. See my Stackoverflow answer for my code. I have implemented the permission to do so:
android.permission.SYSTEM_ALERT_WINDOW
I have tried to add a canvas/paint to the WindowManager without errors, but my app crashed. I have tried searching for an answer, but have turned up empty.
If anyone can help me figure this out, you will be greatly appreciated!
To clarify: I would like this to be drawn where I can have it over other applications and where I can still interact with other applications. Also I've added a button functionality where I turn off/on a view with WindowManager addView and WindowManager removeView, but every time I add a view, it covers the entire area and I can no longer click the button to remove the view.