In accordance with another aspect of the present disclosure, a method of controlling a communication network connection by an electronic device is provided. The method includes: executing a predetermined application using a first communication module in a state in which both the first communication module for performing communication through a first communication network and a second communication module having a higher priority than the first communication module are activated; and performing a control to deactivate the second communication module while the predetermined application is executed.
In accordance with another aspect of the present disclosure, a storage medium storing instructions is provided. The instructions may be configured to cause at least one processor to, when executed by the at least one processor, perform at least one operation. The at least one operation includes an operation of executing a predetermined application using a first communication module in a state in which both the first communication module for performing communication through a first communication network and a second communication module having a higher priority than the first communication module are activated; and an operation of performing a control to deactivate the second communication module while the predetermined application is executed.
According to various embodiments of the present disclosure, even though an electronic device executes an application for exchanging data in real time in a mobile communication network such as 3G, 4G, or LTE and then enters an accessible Wi-Fi network, the electronic device may not access the Wi-Fi network, thereby acquiring an effect of preventing the execution of the application from stopping or being delayed. Accordingly, the user can continuously use the application anywhere, and as a result, user convenience can be improved.