I am newbie at android , I am creating an application which I want login screen to appear on first use after installation of app , but I am not figuring out how to kill that activity , when user opens app again next time. I mean that I don't want login screen activity to appear again. I googled a lot but didn't got any useful answers. here is my code which I use in onDestroy() method.
protected void onDestroy() {
// TODO Auto-generated method stub
super.onDestroy();
android.os.Process.killProcess(MODE_PRIVATE);
}
If I am wrong please help me out of this problem, Thanks in advance