문제

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!

도움이 되었습니까?

해결책

Not sure I completely understand your question but try looking here http://developer.android.com/guide/topics/ui/ui-events.html

As for the starting camera using Intent look at the example here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top