views:

243

answers:

2

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.

+1  A: 

You can specify information regarding that in the android manifest. See activity element documentation. I believe that launchmode might control what you are after.

Mayra
+2  A: 

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

Erich Douglass