a battery latching device is using for accommodating a battery and includes a housing , two opposite latching portions , a resisting portion , and a stopping member . the housing has a bottom wall and configured for accommodating the battery therein . the latching portions are formed on the bottom wall of the housing , and are configured for limiting the two opposite sides of the battery . the resisting portion are formed on the bottom wall of the housing and aligned with one end of the latching portions . the stopping member is retained to the bottom wall of the housing and aligned with another end of the latching portions . the two opposite ends of the battery are hold between the resisting portion and the stopping portion . when detaching the battery from the housing , the stopping member is capable of being pressed toward the bottom wall to release the battery .