A method in a first electronic device for communicating with a second electronic device, the method comprising: detecting a communication event of the second electronic device; if detecting the communication event, transmitting first application information of a first application running on the first electronic device, to the second electronic device; receiving second application information of a second application running on the second electronic device, from the second electronic device; determining one application execution screen of a first application execution screen for the first application and a second application execution screen for the second application according to the result of comparing the first application information with the second application information; and displaying the determined application execution screen, characterized in that: the application information of the first application indicates a first user interface, UI, depth information indicating progress of the first application by amount of times that the first application execution screen for the first application has been changed according to user control, and the application information of the second application indicates a second UI depth information for progress of the second application by amount of times that the second application execution screen for the second application has been changed according to user control. detecting a communication event of the second electronic device; if detecting the communication event, transmitting first application information of a first application running on the first electronic device, to the second electronic device; receiving second application information of a second application running on the second electronic device, from the second electronic device; determining one application execution screen of a first application execution screen for the first application and a second application execution screen for the second application according to the result of comparing the first application information with the second application information; and displaying the determined application execution screen, characterized in that: the application information of the first application indicates a first user interface, UI, depth information indicating progress of the first application by amount of times that the first application execution screen for the first application has been changed according to user control, and the application information of the second application indicates a second UI depth information for progress of the second application by amount of times that the second application execution screen for the second application has been changed according to user control. the application information of the first application indicates a first user interface, UI, depth information indicating progress of the first application by amount of times that the first application execution screen for the first application has been changed according to user control, and the application information of the second application indicates a second UI depth information for progress of the second application by amount of times that the second application execution screen for the second application has been changed according to user control.