1. A method for automatically locking a mobile device having a camera, comprising: capturing images using the camera while the device is unlocked; analyzing the images to determine whether a user's face appears in the images; and in response to determining that the user's face does not appear in the images captured over a predetermined amount of time, locking the device.