Android Power button

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Android Power button

520 Views
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 Kudos
1 Reply

353 Views
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 Kudos