Sam,

There is no "background" or "foreground" state for home screen widgets since
they are never allowed to overlap.

If you would like to perform an expensive (CPU or battery-wise) continuous
update, and looking for a way to optimize by checking for home screen
visibility - well, this might not be a good idea, as that's not really what
home screen widgets are for.

2011/1/15 TreKing <[email protected]>

> On Fri, Jan 7, 2011 at 3:39 AM, Sam CR <[email protected]> wrote:
>
>> How to find out Widget is in Foreground or Background. Anybody help me
>> how to find out when Widget is in Foreground or Background. As per my
>> knowledge there is NO API.
>>
>
> Explaining why you need to know this might help get you an alternate
> solution.
>
>
> -------------------------------------------------------------------------------------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to