P Paul Boyle Member Licensed User Longtime User Oct 4, 2014 #1 Newbie here. Just cant get the hang of these activities commands. In VB.Net if i press a button on a form and it loads another from I can code something like OldForm.Hide NewForm.Load What's the equivalent of this using activities in B4A ? For e.g.. if I have an Exit button and want to hide/close the current activity and open the main activity? Many Thanks.
Newbie here. Just cant get the hang of these activities commands. In VB.Net if i press a button on a form and it loads another from I can code something like OldForm.Hide NewForm.Load What's the equivalent of this using activities in B4A ? For e.g.. if I have an Exit button and want to hide/close the current activity and open the main activity? Many Thanks.
M Mahares Expert Licensed User Longtime User Oct 4, 2014 #2 Suppose your button is in the main Activity and you want to pause main and go to the second activity. If the 2nd activity is called Boyle, you do this: Code: Copy Sub MyButton_Click StartActivity(Boyle) end sub Upvote 0
Suppose your button is in the main Activity and you want to pause main and go to the second activity. If the 2nd activity is called Boyle, you do this: Code: Copy Sub MyButton_Click StartActivity(Boyle) end sub
P Paul Boyle Member Licensed User Longtime User Oct 4, 2014 #3 First layout loaded is: 'Load Layout Activity.LoadLayout("lay_Home") I hit a button on this activity, it triggers: 'Load Layout Activity.LoadLayout("lay_Plyr") I then hit a button (Exit_Click) and want it to close "lay_Plyr" and go back to "lay_Home". This is where its not working for me. Upvote 0
First layout loaded is: 'Load Layout Activity.LoadLayout("lay_Home") I hit a button on this activity, it triggers: 'Load Layout Activity.LoadLayout("lay_Plyr") I then hit a button (Exit_Click) and want it to close "lay_Plyr" and go back to "lay_Home". This is where its not working for me.
ivan.tellez Active Member Licensed User Longtime User Oct 4, 2014 #4 What is the ponit of asking some really basic if you dont even know how an Android App works? First read the Android Process and activities life cycle Then, all the basics are covered here Upvote 0
What is the ponit of asking some really basic if you dont even know how an Android App works? First read the Android Process and activities life cycle Then, all the basics are covered here
klaus Expert Licensed User Longtime User Oct 4, 2014 #5 Look at chapter 13.2 Program with 3 Activities (ThreeActivityExample.b4a) in the Beginner's Guide. Look at Two activities example. Look at Different examples with 2 layouts. Upvote 0
Look at chapter 13.2 Program with 3 Activities (ThreeActivityExample.b4a) in the Beginner's Guide. Look at Two activities example. Look at Different examples with 2 layouts.