To provide a camera easily and surely transmitting data to an external device without requiring any work for cable connection or the like.
When communication is established with the external device 9, a displacement pattern presenting section 201 displays on a display section 15 a predetermined transmission instruction displacement pattern defining a displacement pattern of a camera body. After the communication is established, a transmission control section 203 detects displacement of the camera body conforming to the predetermined transmission instruction displacement pattern on the basis of the displacement detected by a displacement detection section 13. If the displacement of the camera body is detected, the transmission control section 203 transmits data to the external device 9 via a proximity communication section 18.