I have been struggling for some time to find information on how to create my own broadcast intents within AOSP for custom hardware buttons on a device I'm building.
Essentially, I want to have one or more events triggered when a hardware key is pressed down, and other events triggered when the same key is released. The keys in question use custom scan codes and are not standard key values. I already have the scan codes for the keys mapped to keycodes in Android. An example of the events I want to trigger for one particular button are: On key down: turn on keypad light and display send broadcast intent such as android.intent.action.customkey1.down On key up: turn off keypad light, but leave display on send broadcast intent such as android.intent.action.customkey1.up I'm experienced with kernel hacking, as well as digging into anything I can find but I'm at a loss on this particular subject, as most of the resources out there are for app developers rather than OS development. If I am in the wrong group here, I'd really appreciate if you could point me in the right direction! Thanks for any help you're able to offer. J -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/android-developers. To view this discussion on the web visit https://groups.google.com/d/msgid/android-developers/26c61198-e45e-419c-a862-a45ee7920537%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

