Im needing to know how to destroy previous class, when I open a new class so I dont have a ton of open classes to have to hit the ‘back’ button through to get back to 1st main class.
I know the layout code within the onCreate is typically this:
setContentView(R.layout.page);
i was thinking like super.destroy();
So when I use an intent to launch another class, I want the inital class to not leave behind open window/ContentView
By class, you mean another activity?
You can call finish(); after you have started the intent;
Android also takes care of these things himself. If memory is needed, the Dalvik virtual machine will close low priority activities that are running.