Intent intent = new Intent(getApplicationContext(), YourFirstActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
On Thu, May 31, 2012 at 3:24 PM, mani kandan <mgmanikandan87@gmail.com> wrote:
u have to pass intent using 1st activity in on backpress method. .
On 31 May 2012 23:51, "Jags" <jagatm@gmail.com> wrote:--
i ve 4 activities 1->2->3->4 after 4 submit i need 1 to be shown, but dont wanna come 4->3->2->1 need to come back to 1 straightaway. whats d best way ?
--
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+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
No comments:
Post a Comment