问题
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