Electronic device and method for controlling an execution of application in electronic device

If the method of controlling the execution of the application in an electronic apparatus and an electronic device, in accordance with various embodiments of the present invention, and execute the application in the electronic device, detecting a state of the electronic apparatus related to the termination of the application that is the running external of may search for an electronic device, and transmit data of an application are the run to be processed in the executing at least one electronic device selected one of the data is the search outside of the application, the electronic device being in the selected at least one electronic device, comprising: others may be various embodiments.