android - How to check that the Process is alive or not?
<p>I want to check whether the process is still alive or not through programmatically ,Can I do that I am trying to do it by process name in <code>onCreate</code> method but the issue is that the <code>onCreate</code> method is called always .When I check that in <code>onCreate</code> method I always get the process name and I can not kill the current app  and switch to previous one.
Can anybody help me ?
Thanks in advance. </p>
