20

There's an Android Application called Smart Taskbar that manages to Pin a small SemiTransparent Icon over the screen...The icon remains visible over ALL the activites (including the home screen). The Icon is Clickable (/Touchable), and it does popopen a Small Popup window which the user can interact with.

I'm very interested in how this is done? I think it's something to with PopupWindow.

Any ideas? Thanks in Advance.

st0le
  • 33,375
  • 8
  • 89
  • 89
  • I have the same problem, did you find an answer? – shaimagz Dec 26 '10 at 14:37
  • 1
    @shaimagz, i didn't have much luck, i moved on to other things but this thread might interest you http://stackoverflow.com/questions/4481226/creating-a-system-overlay-always-on-top-button-in-android – st0le Dec 27 '10 at 06:04
  • Thanks but I saw this thread already. I think it something that we can find in the source code of Android. Because created the notification bar which appears all the time, and in any app unless your app wants to hide it. It should be something similar. – shaimagz Jan 06 '11 at 14:08
  • Possible duplicate of [Creating a system overlay window (always on top)](https://stackoverflow.com/questions/4481226/creating-a-system-overlay-window-always-on-top) – AlikElzin-kilaka Sep 04 '18 at 06:20

1 Answers1

12

I recently experimented with this.

See this question: Creating a system overlay window (always on top) - the solution is virtually the same, but you need to set TYPE_SYSTEM_ALERT in the layout params instead of TYPE_SYSTEM_OVERLAY.

Community
  • 1
  • 1
Adam Woś
  • 2,493
  • 20
  • 21
  • Interesting, will take a look at it...Leaving for home right now. :) – st0le Mar 01 '11 at 14:47
  • 6
    @Adam Woś, I'm trying the same concept in that question you linked. What I'm trying to figure out how I can get more than just a single touch event with a view layer that sits above all windows. Using TYPE_SYSTEM_OVERLAY allows the user to fully interact with the touch screen but I can only pick up one touch event when the user first places their finger on. But with TYPE_SYSTEM_ALERT, I can receive all the touch events but it locks interaction with everything else. Do you know how I "combine" both together to achieve something like what Wave Launcher and SwipePad can do? Sorry this a bit long! – Brian Jul 20 '11 at 05:12
  • Nope, sorry, haven't looked at this particular part of Android for a few months now :) – Adam Woś Jul 21 '11 at 12:57