Patent ID: 8228674

Claim:
An electronic device comprising: a housing for receiving a battery; and a switching assembly configured for detachably assembling the battery with the housing; wherein the switching assembly defines at least one locking portion disposed on the battery, and comprises a linkage mechanism secured to the housing, at least one restriction portion is disposed on the linkage mechanism corresponding to the at least one locking portion, and an actuator is secured to the linkage mechanism and is configured for driving the at least one restriction portion to lock or unlock with the linkage mechanism when the actuator is pressed; and wherein the switching assembly further comprises a securing rod disposed between the actuator and the battery, the linkage mechanism comprises a sliding member secured to the securing rod and a linkage rod connected between the actuator and the sliding member, the at least one restriction portion is disposed on the sliding member, and the at least one restriction portion is locked or unlocked when the actuator is pressed to drive the linkage rod and the sliding member to move.