Why is the current process killed on back press??

On Thu, Mar 15, 2012 at 4:11 PM, vani reddy <vani.reddy.bl...@gmail.com>wrote:

>
> Hi friends,
>
> Under a particular tab of the tabactivity ,there are 2 activities. A and
> then B.From the menu of B activity when i press Logout it goes to Login
> screen,which is outside the tabactivity.On back button press of login
>  screen it goes back to the Activity B.Though i have given
>  @Override
> public void onBackPressed() {
> // TODO Auto-generated method stub
>  super.onBackPressed();
> System.out.println("INSIDE ONBACK PRESSED ");
>  android.os.Process.killProcess(android.os.Process.myPid());
> }
> in the Login Screen.
>
> How to resolve this issue.
> --
> Regards,
> Vani Reddy
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to