ok can someone help me out i have been trying to find a solution.

my phone in my case turns on which i think is the result of hitting the power button is there a way to make it so you have to long press the power button after the phone turns off to turn it back on or is there some sort of option that has a locker kindda like the iphone. The long press of the end key i allways forget to do i want to find a way to have it auto-lock after the phone shuts off?