I made an update to my accessible pet game. I added that when the player leaves the game, pressing the Home key on the cell phone, the program enters a loop where he performs the checks of the pet's states (hunger, thirst, bath, health, etc.) and if he needs something, he notifies with sounds of the animal and with vibration. When you return the program to run in the foreground, leave this loop and return to the execution of the original program.
All this works perfectly. But there's a problem. After a certain time, my cell phone and others stop executing programs running in the background. That makes the cell phone automatically, to save battery. When this happens, when the application is executed again (through the main shortcut) the screen is completely black. He does not even run again from the beginning, he just goes black without answering. To reuse the game, I must kill the process, and then restart the game.
However, other applications continue to work in the background, and do not end, even when the user finishes all processes. For example, WhatsApp, Facebook, some games, etc. In addition, these programs autoinician with the ignition of the cell phone.
I think it would be necessary to have these opportunities in Mintoris Basic, and to expand and improve the SetOnPauseSub and SetOnResumeSub. Or maybe, add execution options in the background (choose the level) and autonomy of the application, when the project is exported.