开发者

how to catch hardware key press event in service(background) on android .?

I try to implements KeyListener at service, and override on开发者_如何学运维KeyDown method.

but not use above methos...


Generally, you cannot "catch hardware key press event in service(background) on android".

The CAMERA button, if it exists on a device, and the MEDIA button, if it exists on a plugged-in headset, will result in broadcast Intents if the foreground activity does not consume the events.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜