I know that this call should not be made but at the moment is the only thing stopping the activity fast enough.
Basically after returning the app from the background (or using the DDMS "Terminate Application" button) some static variables are null. I would like to restart the activity in order to stop crashes and so all values are updated.
At the moment System.exit(0) has done what I want, but I know this is not good.
I have tried finish()
, but that does not stop the activity fast enough, it keeps executing some instructions that still causes the crash.
Any suggestions on how to manage this problem.