If you are modifying the system, just add something that runs in a
persistent process (such as phone or system) that creates a window in the
desired layer to be on top of other windows.

(Note this is not a widget in the android definition, either as a member of
android.widget or an "app widget" that would go on the home screen.)

The CPU usage UI that you can enable from dev tools does this kind of thing:

http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;f=services/java/com/android/server/LoadAverageService.java;h=0d86429aaa5ccf6ecf311dfb3af0f3ccbf5f8d29;hb=HEAD

On Wed, Feb 3, 2010 at 4:18 PM, David R. <[email protected]> wrote:

> Experts - I'm banging my head on the wall.  I have a small temperature/
> date/time
> widget.  When I touch the widget it changes from current temp to
> current date to current time, and back.  I would like to find a way to
> display my widget always on top of all applications?
>
> Is this possible?  I've tried continually changing focus to my widget
> app but doesn't seem to work (ie. just instantaneously goes away
> "behind" the current app).  Any ideas on accomplishing this?  Are
> there any apps out there that are displaying their widget or  info
> button over the top of all apps?????
>
> Is there even a hack to accomplish this?
>
> Thanks for any help!!!!
> Davey
>
> --
> unsubscribe: 
> [email protected]<android-porting%[email protected]>
> website: http://groups.google.com/group/android-porting
>



-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

Reply via email to