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
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!
-----------------------------------------------------------------------------------------------------------------------