An electronic device comprising: wireless communication circuitry; a touch screen; and a processor configured to control the electronic device to perform operations comprising: detecting an execution event; activating a first application in response to the execution event; detecting, on a screen of the first application, a first touch input for transmitting a selected at least one of a plurality of contents displayed on the screen of the first application; based on the first touch input for transmitting the selected at least one of the plurality of contents: initiating to establish a direct wireless communication connection with an external electronic device, in response to the initiating, transmitting a signal via the wireless communication circuitry, the signal includes first information related to the first application, the first information comprising channel information, receiving a response from the external electronic device which has activated a second application corresponding to the first application, in response to receiving the response, establishing the direct wireless communication connection with the external electronic device, transmitting, to the external electronic device, over the direct wireless communication connection established with the external electronic device, the selected at least one of the plurality of contents; detecting a second touch input for deactivating the first application; and terminating the direct wireless communication connection based on deactivating the first application. wireless communication circuitry; a touch screen; and a processor configured to control the electronic device to perform operations comprising: detecting an execution event; activating a first application in response to the execution event; detecting, on a screen of the first application, a first touch input for transmitting a selected at least one of a plurality of contents displayed on the screen of the first application; based on the first touch input for transmitting the selected at least one of the plurality of contents: initiating to establish a direct wireless communication connection with an external electronic device, in response to the initiating, transmitting a signal via the wireless communication circuitry, the signal includes first information related to the first application, the first information comprising channel information, receiving a response from the external electronic device which has activated a second application corresponding to the first application, in response to receiving the response, establishing the direct wireless communication connection with the external electronic device, transmitting, to the external electronic device, over the direct wireless communication connection established with the external electronic device, the selected at least one of the plurality of contents; detecting a second touch input for deactivating the first application; and terminating the direct wireless communication connection based on deactivating the first application. detecting an execution event; activating a first application in response to the execution event; detecting, on a screen of the first application, a first touch input for transmitting a selected at least one of a plurality of contents displayed on the screen of the first application; based on the first touch input for transmitting the selected at least one of the plurality of contents: initiating to establish a direct wireless communication connection with an external electronic device, in response to the initiating, transmitting a signal via the wireless communication circuitry, the signal includes first information related to the first application, the first information comprising channel information, receiving a response from the external electronic device which has activated a second application corresponding to the first application, in response to receiving the response, establishing the direct wireless communication connection with the external electronic device, transmitting, to the external electronic device, over the direct wireless communication connection established with the external electronic device, the selected at least one of the plurality of contents; initiating to establish a direct wireless communication connection with an external electronic device, in response to the initiating, transmitting a signal via the wireless communication circuitry, the signal includes first information related to the first application, the first information comprising channel information, receiving a response from the external electronic device which has activated a second application corresponding to the first application, in response to receiving the response, establishing the direct wireless communication connection with the external electronic device, transmitting, to the external electronic device, over the direct wireless communication connection established with the external electronic device, the selected at least one of the plurality of contents; detecting a second touch input for deactivating the first application; and terminating the direct wireless communication connection based on deactivating the first application.