2

How can I make an activity that stay on the top of all other applications?

something such as this

https://play.google.com/store/apps/details?id=com.gooutnplay.antsinmypants&hl=en

Thanks.

Ahmed
  • 938
  • 7
  • 16
  • How about using fragments to achive this. – vinoth Mar 23 '13 at 17:09
  • maybe I did not clarify my needs clearly. The link in the post for the application "Ants in my Pants" it's displayed on the screen regardless of which application is running. I want to do something similar. – Ahmed Mar 23 '13 at 17:12
  • 1
    This is a good starting point: [link](http://stackoverflow.com/questions/2176922/how-to-create-transparent-activity-in-android) – Justin Vartanian Mar 23 '13 at 17:14
  • 1
    Take a look at this question : [Creating a system overlay](http://stackoverflow.com/questions/4481226/creating-a-system-overlay-always-on-top-button-in-android) – Vladimir Mironov Mar 23 '13 at 17:31

1 Answers1

1

It may be a hack of the permission SYSTEM_ALERT_WINDOW, which allows the app to draw on top of any other app.

Ahmad
  • 69,608
  • 17
  • 111
  • 137
levis501
  • 4,117
  • 23
  • 25