Android Power button

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Android Power button

753件の閲覧回数
deepanrajanbara
Contributor IV

Hi,

We are working on a custom board based on imx6 with android lollipop,

Currently we have configured the power button in our device to show pop up to shut down the board.

But for us when we press the power button we wanted to lock the screen.Can any one help us in integrating the lock screen.

Thank you,

Deepanraj.A

0 件の賞賛
返信
1 返信

586件の閲覧回数
b36401
NXP Employee
NXP Employee

You can configure key mapping to the AOSP power key.
Please refer: https://developer.android.com/reference/android/os/PowerManager.html

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信