The present disclosure relates to a pre-5 th -Generation (5G) or 5G communication system to be provided for supporting higher data rates Beyond 4 th -Generation (4G) communication system such as Long Term Evolution (LTE). A first electronic device according to an embodiment of the present invention comprises a control unit, an input unit, an output unit and a communication unit. The input unit recognizes occurrence of a touch input for transmitting or receiving contents, and the communication unit, on the basis of the received signal strength of a search signal or a response signal received from at least one other electronic device, transmits the contents to the at least one other electronic device or receives the contents from the at least one other electronic device.
展开▼