What happens when android app is "killed"
<p>I have an app which has real time push notifications enabled. So my query is whenever any user tries to <strong>kill</strong> my app using "Advance Task Killer", my app goes into undefined state.</p>

<p><strong>Undefined State</strong>: What i mean is my app doesn't gets completely terminated. The screen has data in a inconsistent state.</p>

<p>So is there way where i can take a user to login screen back whenever an app is killed. So that user wont see any undefined state.</p>

<p>Also want to know what happens to my app states after it gets killed so that i can fix the issue.</p>

<p>Help Appreciated.</p>
