0

I want to make a walkie-talkie app using the power button as Push-to-talk. Therefore i need to replace the button's behavoir to Using onKeyDown onKeyUp or OnKeyLongPressed() trigger events works to receive, but after thre trigger event is processed, screen goes off.

What i have found searching Overriding the power button in Android How to hook into the Power button in Android? doesn't help me since i can't get the Cyanogenmod to work on this phone.

Maybe you have some Idea.

Thank you in advance.

4

1 回答 1

3

您无法更改电源按钮的行为,除非通过您自己的自定义 ROM 模块(例如 CyanogenMod)。

于 2013-11-19T00:28:25.460 回答