Patent ID: 8248773

Claim:
A portable electronic device, comprising: a storage unit; a display unit; at least one processor; an altimeter operable to detect a height of the portable electronic device; one or more programs stored in the storage system and being executable by the at least one processor, the one or more programs comprising: a setting module operable to set a predetermined changed height and a predetermined time period for unlocking the portable electronic device; a receiving module operable to receive the height of the portable electronic device and a changed height of the portable electronic device and save the height and the changed height to the storage unit; a checking module operable to determine whether the changed height stored in the storage unit changed within a predetermined time period; a determination module operable to determine whether the changed height is the same as a predetermined changed height if the changed height changed within the predetermined time period; and an unlocking module operable to unlock the portable electronic device if the changed height is the same as the predetermined changed height.