My app navigates screen A >> B >> C
for both screens B and C, i've enabled
ActionBar.setDisplayHomeAsUpEnabled()
I've got the following code when the UP button is pressed.
case android.R.id.home:
// app icon in action bar clicked; go home
Intent intent = new Intent(this, StartupActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
startActivity(intent);
return true;
Problem is, from screen C it goes to A - i'd like it to go B.
Also i'd like the state at the previous screen as left when navigating
out of that page - not a new initialized version.
basically i'd like it to replicate the BACK button behavior.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en