N Nilzzz Member Licensed User Longtime User Nov 10, 2014 #1 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!
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 Nov 10, 2014 #2 Nilzzz said: Is there any possibility to disable this "popping up"? Click to expand... Use ONLY one Activity then! That´s how Android works. Get informed about the Livecycle of Activities to understand. Upvote 0
Nilzzz said: Is there any possibility to disable this "popping up"? Click to expand... Use ONLY one Activity then! That´s how Android works. Get informed about the Livecycle of Activities to understand.
N Nilzzz Member Licensed User Longtime User Nov 10, 2014 #3 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
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?
thedesolatesoul Expert Licensed User Longtime User Nov 10, 2014 #4 http://www.b4x.com/android/forum/threads/activity-without-animation.18906/#post-108560 http://www.b4x.com/android/forum/threads/animations-for-activities.22770/#post-132044 Upvote 0
http://www.b4x.com/android/forum/threads/activity-without-animation.18906/#post-108560 http://www.b4x.com/android/forum/threads/animations-for-activities.22770/#post-132044
DonManfred Expert Licensed User Longtime User Nov 10, 2014 #5 Nilzzz said: If i use only one activity how can i solve the problem that the back button will close the app? Click to expand... http://www.b4x.com/android/forum/threads/class-double-tap-to-exit.29451/ Upvote 0
Nilzzz said: If i use only one activity how can i solve the problem that the back button will close the app? Click to expand... http://www.b4x.com/android/forum/threads/class-double-tap-to-exit.29451/