My app has 4 different screens and I am trying to set up a tab-like structure, only using buttons. For simplicity I'll just call them A,B,C,D.
Right now in the onCreate method of each Activity, I have 3 button Button listeners (in Activity A, I have listeners for Button B, C, D) that trigger a startActivity when the respective button is pressed.
The problem occurs when I navigate from say A->B and then try to go back B->A using the buttons, my application crashes. I believe this is because A is paused in the background, and trying to start a new instance of it makes the program crash.
So I was wondering if there is a way to resume Activity A without creating a new instance of it? I was expecting there to be some sort of resumeActivity() Method, but it doesnt seem to exist.
Thanks for any help.