I have 2 activities, a Main Activity and SetAlarm Activity. I call SetAlarm Activity from Main. When I set up the alarm I create an instance of my main. How do I set up the
In default, an Activity can be instantiated multiple times on multiple tasks. If you want to keep it single, specify android:launchMode="singleTask" on the activity declaration in AnroidManifest.xml and override Activity#onNewIntent() on your main activity to receive a new intent from AlarmManager if main activity is already instantiated.
See Tasks and Back Stack to learn more. You are facing almost same situation shown in Figure 3.