Android: Leave one activity running when page is called multiple times

I have multiple pages branching of a title page, and when a back button is pressed on the branch pages it recalls the title page with:

Intent backIntent = new Intent(Options.this, TitlePage.class);

Then destroys with:

protected void onPause() {

The problem is each time this is called it overlays the title page. I need only one title page to exist without destroying all of them with the finish() method.




If you want your branching activities to go back to the title activity no matter how far down the tree the user goes, you should call those activities with the noHistory flag. That way, anytime the child activities are finished, the user will always end up back at the title activity.

This can be done two ways:

With the Intent used to launch the Activity:

Intent myIntent = new Intent();
startActivity(this, myIntent);

In the Android Manifest file (AndroidManifest.xml):

    android:noHistory="true" />

Need Your Help

change tint and background colors of a ABPeoplePickerNavigationController embedded in a tab bar view controller

ios objective-c abpeoplepickerview

i have a tab bar controller in witch i would like to embed a ABPeoplePickerNavigationController. I' done so by putting this code in viewDidLoad

carry (cache?) web elements over to new pages as they load

javascript jquery html css

Wondering if there's a way to animate a div containing an image while a new page loads behind the animation (probably using jQuery, but not sure if there's an easier way).