Today, mobile devices are being used for various applications such as making voice/video calls, browsing Internet and so on. The operating time and battery consumption spent in those activities affect the battery life of mobile devices. In this paper, we propose a method for predicting the battery lifetime of mobile devices based on usage patterns. We define the possible states of mobile devices based on their operating functions and develop a method of predicting battery lifetime based on average battery consumption and duration of each state.