Re-use previous activities?

android, android-activity, reusability, switch-statement

Solution

You can control some aspects of this with `android:launchMode` on the activity.

Problem

I have activities that are create and launched from menu options. However Ive noticed that this may mean that sometimes there are two or more copies of the same activity. So Im wondering if there's a way to see if another activity is already instantiated and then have the application switch to it or create a new one if its not instantiated.

Original source