0

I need to display text on the screen like that

enter image description here

How can I do that? Do I need to sign the application?

I already checked Overlay screen on Android but the method doesen't seems to work from a service.

Thanks

Community
  • 1
  • 1
yonutix
  • 1,964
  • 1
  • 22
  • 51

2 Answers2

2

I was able to add graphical elements using WindowManager to display stuff on top of other stuff (within my app and outside) from a service.

Take a look at how we do that in GlobalTouchService from our project (Reach.io).

If you are just displaying something and interacting with those elements you added, this method will be sufficient. Interacting with other apps(outside your app) through that interface requires additional stuff.

Another Dev
  • 116
  • 1
  • 7
1

Try it by using RelativeLayout and View.html#bringToFront() method

Check this: example

Community
  • 1
  • 1
alex
  • 8,904
  • 6
  • 49
  • 75