An electronic device includes a housing, a male connector disposed on the housing, and a battery in the housing and electrically connected to the male connector. At least one cavity is formed in the housing, wherein a portion of the cavity includes a contact electrically connected to the battery. The male connector is configured for connecting to a second electronic device, and the at least one cavity is configured for receiving an in-ear wireless headphone. The battery is configured for simultaneously charging the second electronic device and the in-ear wireless headphone when the second electronic device is connected to the electronic device via the male connector, and the in-ear wireless headphone is positioned in the cavity.