How to lighten LED in key driver, when user press any KEY.

by Dianne Hackborn » Fri, 13 Mar 2009 03:01:56 GMT

Sponsored Links
 The driver doesn't do this, it is done by the high-level PowerManager Java

Dianne Hackborn
Android framework engineer

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


Other Threads

1. How can I change the look of the front screen of the Android?

I'm following the code for StatusBarService and looking at
TrackingView animation. I see the animation involved changing the
height of LayoutParams, but I would like to change the x and y
location of my view during animation. I can change the x/y cords and
update call
however, this does not change anything. I tried changing the gravity
settings and even removing them, but that didn't work me. Am I missing
some steps or going about in the wrong direction here? Please advice.




2. pressed image not showing !

<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="">
        <item android:drawable="@drawable/image1" /> <!-- default -->
        <item android:state_pressed="true" android:drawable="@drawable/
image2" /> <!-- pressed -->
        <item android:state_focused="true" android:drawable="@drawable/
image3" /> <!-- focused -->

i wrote this in btnattr.xml file in drawale.

and in my main.xml i wrote
<ImageButton android:id="@+id/ImageButton09"
                        android:layout_width="80px" android:layout_height="80px"

when the application is run, the image1 is displayed, expected.

but when i press the button image2 is not displayed ! where am I going
wrong ?

Thanks for helping



3. How do I create a jar containing the .class files in bin?

4. android.R.drawable.ic_menu_home - can not use

5. Talking to service Daemons / init.rc help

6. Selectively start a service based on type of build

7. When a phone is factory reset, market loses track of purchased apps