开发者

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

开发者 https://www.devze.com 2023-03-01 03:05 出处:网络
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

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

精彩评论

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