In recent years, wireless networks have become extremely necessary in modern communications. Especially in mobile phones, we are using wireless networks to connect to networks around the world using both cellulars and WLANs. In order to connect to the Internet, mobile phones can connect to the Internet using these wireless network technologies, but, mobile phones cannot select a suitable wireless network. In this paper, we propose the network selection that considers both Wi-Fis and cellulars by using energy efficiency, delay, and UDP loss rate as key factors. To get these parameters, we used data from our measurement for four periods of time. After collecting the data, the algorithm applied for dynamic weight calculation based on Max-Min Fairness Algorithm and compared score results of each network path to select the best path. The simulation results demonstrate that the process of this proposed algorithm leads to convergence, therefore, this scheme can be used for network selection in mobile devices.