Can I create an UI or a widget in Android that will sit on top of all applications? There are applications that have widgets like this. One example has a camera icon on top of all the applications that, when clicked, will capture the screen.
Share
If you want to just display something, you can display it on top of everything even the lockscreen.
If you want something to be clickable, you can display it on top of anything except the lockscreen.
Here’s a sample, modify to your needs:
Create a service and do the following: