Hello I'm looking for a bit of advice in which way is the best to proceed creating my applications 'gameloop' - It doesn't want to be a game loop in the truest sense since I'm not really rendering any graphics just displaying some animated gifs.
My goal is to have a task that runs every 30 minutes that decrements pet variables
Example Method
passTime { <pets health> = <pets health> - 1; <pets hunger> = <pets hunger> -1; <pets exp> = <pets exp> + 5; } et
c. I was wondering the best way to go about this? AsyncTask will be of no use since this ideally wants to be running even when the app isn't.
I would rather use an IntentService subclass rather than a Service subclass but I can't seem to get the IntentService to run through a pendingIntent via the AlarmManager.
So I'm asking advice on the best way to proceed from the ground up with this. Thank you!
if (pet.hunger <10) { toast,notification etc..}
the idea is for the app to have its own 'digital' timeline (or loop) (starting from when user selects pet) \$\endgroup\$