An electronic device (101; 201) comprising: a communication module; a display; a memory; a processor configured to: establish a communication link for sharing a screen with an external electronic device; check display information of the electronic device, the display information comprising display resolutions and aspect ratios supported by the electronic device; transmit, via the communication link, a request for display information of the external electronic device to the external electronic device; receive, via the communication link, the display information of the external electronic device from the external electronic device, the display information comprising an aspect ratio and at least one display resolution supported by the external device; generate a list of transfer screen information based on display information of the electronic device and the display information of the external electronic device; select, from the list, transfer screen information having a maximum display resolution at the aspect ratio of the external electronic device that is also supported by the electronic device; determine whether the aspect ratio of the selected transfer screen information corresponds to a current aspect ratio of the electronic device; if the current aspect ratio of the electronic device is different from the aspect ratio of the selected transfer screen information, change the aspect ratio of the electronic display to the aspect ratio of the selected transfer screen information; and generate data to be transmitted at least based on the resolution of the selected transfer screen information and transmitting the generated data to the external electronic device. a communication module; a display; a memory; a processor configured to: establish a communication link for sharing a screen with an external electronic device; check display information of the electronic device, the display information comprising display resolutions and aspect ratios supported by the electronic device; transmit, via the communication link, a request for display information of the external electronic device to the external electronic device; receive, via the communication link, the display information of the external electronic device from the external electronic device, the display information comprising an aspect ratio and at least one display resolution supported by the external device; generate a list of transfer screen information based on display information of the electronic device and the display information of the external electronic device; select, from the list, transfer screen information having a maximum display resolution at the aspect ratio of the external electronic device that is also supported by the electronic device; determine whether the aspect ratio of the selected transfer screen information corresponds to a current aspect ratio of the electronic device; if the current aspect ratio of the electronic device is different from the aspect ratio of the selected transfer screen information, change the aspect ratio of the electronic display to the aspect ratio of the selected transfer screen information; and generate data to be transmitted at least based on the resolution of the selected transfer screen information and transmitting the generated data to the external electronic device. establish a communication link for sharing a screen with an external electronic device; check display information of the electronic device, the display information comprising display resolutions and aspect ratios supported by the electronic device; transmit, via the communication link, a request for display information of the external electronic device to the external electronic device; receive, via the communication link, the display information of the external electronic device from the external electronic device, the display information comprising an aspect ratio and at least one display resolution supported by the external device; generate a list of transfer screen information based on display information of the electronic device and the display information of the external electronic device; select, from the list, transfer screen information having a maximum display resolution at the aspect ratio of the external electronic device that is also supported by the electronic device; determine whether the aspect ratio of the selected transfer screen information corresponds to a current aspect ratio of the electronic device; if the current aspect ratio of the electronic device is different from the aspect ratio of the selected transfer screen information, change the aspect ratio of the electronic display to the aspect ratio of the selected transfer screen information; and generate data to be transmitted at least based on the resolution of the selected transfer screen information and transmitting the generated data to the external electronic device.