I'm kind of new in android AOSP development, and I'm trying to click to the trackball and launch an app already installed (Camera App).
I'm looking at the policy.androdoid, but i just doesn't understand how to gain controls of the hardware buttons and where to start.
Any help, source code example or something like that will be really helpful.
Thanks in advance!