How can I prevent the camera from launching accidentally when the phone is in my bag or pocket?

You can take photos quickly by pressing the camera key, even when your phone is locked.

To switch this off, in the main menu, select Settings > Application settings > Camera, and switch Capture when phone locked to No.