On Wed, Mar 17, 2010 at 6:28 AM, Csenteri Barna <[email protected]> wrote:

> I need this in a custom device which will have some leds/extended keyboard
> for our custom aplications.
> Those leds should have different status depending from which activity is
> running on it (browser, email, etc.).
> So I don't want to hack anything - it's only about the backlight of some
> buttons :)
>

If you are making a custom device, you can customize it to do what you want.
 The SDK doesn't provide a way to do this.  As of 2.0, there are two
facilities inside of the system: IActivityController is for testing and
should not be used on production devices; IActivityWatcher tells you about
each time an activity is resumed.  The latter can be used in production, but
you must be very careful with it since it comes from deep in the bowels of
the activity manager.  You also should probably have whatever code is using
it also running in the system process.

Any further discussion should be moved to android-porting, since this is
well outside of the SDK.

-- 
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.

-- 
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