Is there a way to prevent the phone from locking automatically when it's charging?
It's a bit annoying when I have it charging at work and it looks itself all the time.
There is also an app that applies various profiles based on the power supply that is currently used, battery, usb, or AC... with the paid versions you can also set up other criteria for other profiles. But, with the app, you can set the screen timeout to never when on usb or AC power, but have a normal timeout/lock when on battery. Power Manager is the app.
you can. menu>settings>applications>development>stay awake