yonutix
yonutix

Reputation: 2449

Android screen text overlay

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

Upvotes: 0

Views: 1558

Answers (2)

devops
devops

Reputation: 9187

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

Check this: example

Upvotes: 1

Another Dev
Another Dev

Reputation: 116

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.

Upvotes: 2

Related Questions