An housing assembly includes an outer housing, an antenna cover, a support member, and an elastic member. The outer housing defines an antenna opening. The antenna cover is positioned in the antenna opening of the outer housing. The support member is positioned in the outer housing. The support member forms an assembly portion for receiving the antenna module. The assembly portion is aligned with the antenna opening. The elastic member is positioned between the support member and the antenna cover, generating elastic force snugly fixing the antenna cover to the outer housing. An electronic device using the housing assembly is also provided.