Setting a game to run while closed


  • Posts: 1
I'm working on a real-time game/application to be used on Android, but I realized that I wasn't sure how to make it update while closed. Things like progress bars need to fill even when the game isn't actively running.  I tried making it run in the background, and that worked, but it won't work while the phone is shut down or if Android stops running it in the background.

I found a great extension here,15063.0.html that let me update the game when opened based on the phone's clock, but then I realized that people can just change their phone's clock to essentially cheat.

I hope I'm not embarrassing myself by asking, but this is my first game and I want to make it well.


  • *
  • Posts: 2243
You'd need to check for the date from a remote source (which would require the user to have a internet connection. )