Android Power button

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Android Power button

532 次查看
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 回复

365 次查看
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 项奖励