Is it possible to distinguish the cause of application deactivation?
Aplpication enters the deactivated state when users press back button or there is a call\SMS. My question is - how to distinguish the cause? It is important to prevent cheating etc.
I have time counter - it will be ok to freeze it when there's income call or SMS. In case of pressing back button it shouldn't be saved.
If this is to prevent cheating in a game I wouldn't make make a distinction between 'back' and 'getting a call' because to the user that would be confusing and it would trigger others to cheat by having someone call them.
Just resume from the game's last save point or offer to try the level again.