In the app that I am making, there are 12 different activities linked to the main page. All of them are independent of each other. I want the previous activities removed from the back stack so that the app takes less memory. I have managed to have single instance of each activity by using
android:launchMode = "singleInstance"
But still when these activities are started from the main page, 12 different pages go in the back stack and app crashes. What is the work-around?