Android Question Problem by changing activitys

Nilzzz

Member
Licensed User
Longtime User
Hello,

i am new at programming android apps and have a question about changing between diffrent activitys. My application has three diffrent activitys and each activity has his own layout. In every layout file there is the same menu-panel with three buttons to switch between the activitys. Everything works well but my problem is that if i change to another activity the new layout is "popping" up at the screen. It is not the same way like changing the layout in one activity.
I know i could solve this problem with using only one activity and showing/hiding diffrent panels but i also want to use the "back"-button which would close the app in this case.
Is there any possibility to disable this "popping up"?

I'm sorry for my english and hope you will understand my question :)
Thank you very much!
 

DonManfred

Expert
Licensed User
Longtime User
Is there any possibility to disable this "popping up"?
Use ONLY one Activity then!

That´s how Android works. Get informed about the Livecycle of Activities to understand.
 
Upvote 0

Nilzzz

Member
Licensed User
Longtime User
Thanks for the quick answer.

If i use only one activity how can i solve the problem that the back button will close the app?
 
Upvote 0
Top