My application behaves a certain incorrect way after it is killed by the OS while running in the background. In trying to debug this, I've had to basically wait for the OS to do this on every go around - this is very slow, so I was wondering if there was a way of programmatically telling the OS to kill my app.
I have tried android.os.Process.killProcess(android.os.Process.myPid())
and finish()
but those don't seem to produce the same behavior as the natural way does.
Does anyone have any suggestions?