Timer in Eclipse for Android Game

妖精的绣舞 提交于 2020-01-06 13:55:27

问题


I'm making this android game of mine for our Programming 3 course. And I don't have any idea how can I make a timer that will not stop until the user finished all the 3 levels of the game? Please help me :(


回答1:


You can start the time in a service. So it will continue to run in the background irresoective of anythings. After completing 3 levels you can stop the timer by stopping the service.



来源:https://stackoverflow.com/questions/18246941/timer-in-eclipse-for-android-game

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!