[android-developers] Back button not working properly after coming out of Tabactivity

2012-03-15 Thread vani reddy
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

Re: [android-developers] Back button not working properly after coming out of Tabactivity

2012-03-15 Thread sha m
Why is the current process killed on back press??

On Thu, Mar 15, 2012 at 4:11 PM, vani reddy vani.reddy.bl...@gmail.comwrote:


 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