On the other hand, when there is no accessible AP in the vicinity, the electronic device 101 may perform communication through the first communication module. When the electronic device 101 moves and enters an area in which an accessible AP exists, the electronic device 101 may release the access through the first communication module and then access the Wi-Fi network through the second communication module and perform communication. As described above, when the electronic device 101 enters the Wi-Fi network area even while accessing the first communication network through the first communication module, the electronic device 101 automatically switches to the second communication network, that is, the Wi-Fi network, through the second communication module, such that the priority of the second communication module may be higher than the first communication module.
However, when an application execution request is input in the state in which the second communication module is activated or no accessible AP is found, the electronic device 101 may execute the application through the first communication module. Thereafter, when the electronic device 101 moves and enters the area in which an accessible AP exists and accesses the Wi-Fi network through the second communication module, the network address is changed, such that the application may have to be stopped or restarted.
When the executed application is an application (for example, a game application) required to transmit or receive data in real time to or from an external server, the game may be stopped or delayed at a time that the user did not intend due to the communication network switching. Accordingly, the communication network type for communication is important to the application required to transmit or receive data in real time to or from the external server.