Pilar-JLSineriz Active Member Licensed User Longtime User Jun 25, 2015 #1 Hi.. I have an application with three activities, main, sc1 and sc2. I want to use a bottom to change between sc1 and main without to start activity "main" (similar to back action) Thanks
Hi.. I have an application with three activities, main, sc1 and sc2. I want to use a bottom to change between sc1 and main without to start activity "main" (similar to back action) Thanks
thedesolatesoul Expert Licensed User Longtime User Jun 25, 2015 #2 Pilar-JLSineriz said: I want to use a bottom to change between sc1 and main Click to expand... You want to use a bottom? I hope you mean button. If you do Activity.Finish it will go back to the previous activity (like back button). Upvote 0
Pilar-JLSineriz said: I want to use a bottom to change between sc1 and main Click to expand... You want to use a bottom? I hope you mean button. If you do Activity.Finish it will go back to the previous activity (like back button).
Pilar-JLSineriz Active Member Licensed User Longtime User Jun 25, 2015 #3 thedesolatesoul said: You want to use a bottom? I hope you mean button. If you do Activity.Finish it will go back to the previous activity (like back button). Click to expand... sorry.... button!!!!!!!! Can I write Activity.finish in the button presents in activity sc1 and return to main??? Upvote 0
thedesolatesoul said: You want to use a bottom? I hope you mean button. If you do Activity.Finish it will go back to the previous activity (like back button). Click to expand... sorry.... button!!!!!!!! Can I write Activity.finish in the button presents in activity sc1 and return to main???
Pilar-JLSineriz Active Member Licensed User Longtime User Jun 25, 2015 #4 Thanks thedesolatesoul.... it's perfect!!! Upvote 0
Q qsrtech Active Member Licensed User Longtime User Jun 26, 2015 #6 I would encourage you to move away from using multiple activities and switch to using "classes" see my post here https://www.b4x.com/android/forum/posts/342902/ This avoids "switching" between activities and having to recreate activities and mess with saving "state". It also opens the door to using a drawer and a common toolbar with multiple "activities". Classes are also reusable so you could in effect have duplicate "activities" for example a web browser with multiple "tabs". Lastly, it will make your app more b4i friendly. Good luck! Upvote 0
I would encourage you to move away from using multiple activities and switch to using "classes" see my post here https://www.b4x.com/android/forum/posts/342902/ This avoids "switching" between activities and having to recreate activities and mess with saving "state". It also opens the door to using a drawer and a common toolbar with multiple "activities". Classes are also reusable so you could in effect have duplicate "activities" for example a web browser with multiple "tabs". Lastly, it will make your app more b4i friendly. Good luck!
Pilar-JLSineriz Active Member Licensed User Longtime User Jul 1, 2015 #7 Thanks thanks!!!!!!! Upvote 0