FIG. 4B is a flowchart illustrating a method of controlling a W-Fi network connection by an electronic device according to various embodiments of the present disclosure.
Referring to FIG. 4B, when the Wi-Fi function is in the active state in operation 450, the processor 120 may search for at least one accessible AP and determine whether accessing one of the found access points is possible in operation 455. When it is possible to search for and access the Wi-Fi connection, that is, when an accessible AP is found, the processor 120 may access the found AP according to a preset reference. The processor 120 may execute a Wi-Fi-network-based application in operation 460 on the basis of an application (for example, a game application) execution request corresponding to the user input. Since the operation of executing the Wi-Fi-network-based application corresponds to the operation of transmitting/receiving, through the Wi-Fi network, data related to the executed application through the connection to the Wi-Fi network, a detailed description thereof will be omitted.
On the other hand, when searching and accessing are not possible, the processor 120 may execute a mobile-communication-network-based application in operation 465. Subsequently, the processor 120 may identify attribute information of the executed application in operation 470. The attribute information of the application may be used for determining whether the application executed in the electronic device 101 is an application required to transmit and receive data in real time to and from the external server.