Patent ID: 8360485

Claim:
An electronic device comprising: a main body; and a holding mechanism arranged in the main body, comprising: a housing comprising a first sidewall, a second sidewall opposite to the first sidewall, and a third sidewall formed between and connecting the first sidewall and the second sidewall, an opening defined in the second sidewall; a stopper member slidably received in the housing and connected to the third sidewall through a first elastic member, the stopper member comprising a sloping free end; a carriage slidably received in the housing and connected to the first sidewall through a second elastic member; a ridge protruding from the carriage, and the carriage capable of being blocked by the sloping free end of the stopper member engaging with the ridge to retain the carriage in a retracted position; and a button slidably connected to the housing and comprising a distal end, the distal end engaging with the stopper member; wherein, pushing of the button pushes the stopper member to compress the first elastic member to move the sloping free end of the stopper member to disengage from the ridge, such that the second elastic member pushes the carriage away from the retracted position and drives the carriage towards the opening, when an external force is applied to the carriage to move the carriage away from the opening, the carriage compresses the second elastic member and applies force to the stopper member by the ridge engaging with the sloping free end of the stopper member, such that the stopper member compresses the first elastic member, when the carriage is moved towards the retracted position, the first elastic member rebounds to move the stopper member to block the carriage by the sloping free end of the stopper member engaging with the ridge to retain the carriage in the retracted position.