When I press the power button on my Galaxy Nexus to turn off the screen, it immediately locks the phone, and I have to enter my code the next time I turn the screen back on. However, if I let the screen timeout and turn itself off, I don't have to enter my code when I turn it back on.
This is highly annoying. I'd prefer the device to only lock after a period of inactivity. What's the best way to make that happen?