开发者

How to gain control of trackball in Nexus One Android

开发者 https://www.devze.com 2023-01-22 20:55 出处:网络
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 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 s开发者_开发知识库tart.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消