Hi there i have little problem and i dont know how to solve it(i know but i dont know its the best way)
onDestroy() is called when an activity finishes its life cycle.
I have
[java] @Override
public void onDestroy()
{
super.onDestroy();
wakeLock.release();
System.runFinalization();
android.os.Process.killProcess(android.os.Process.myPid());
}[/java]
and magic happens on application start it calling onDestroy and killing it ,if i remove this “killProcess” ,app will be still running lovely…
I thought i make boolean initialOnDestroy so i skip first onDestroy call.But i think its kind stupid.
I want to know why is this happen?
Anyone can help me?
Thanks in advance.