As a beginner (coming from Delphi) and would like to get off on the right foot with my first B4A app. It seems to me that the first major decision to be made is whether to have a single activity with multiple panels for the layouts or have one activity for each layout. Reading through the forum postings, tutorials and guides I see a lot about how to implement the 2 methods but not a lot about why to use one or the other. I can see a few superficial reasons for choosing one or the other but are there deeper, less obvious factors that I should consider?
On the surface, the main difference I notice is the division of code. If multiple activities are used each activity only needs to contain the code for one layout. I think this would be much easier to manage when coding.
However multiple activities means you must have your data much better organised to ensure the bits you need are available between layouts (not a bad thing but more work that I am used to coming from Delphi!)
Creating and switching between multiple panels in one activity also seems to involve a lot of tedious code (creating the holder-panels, loading the layouts, hiding all the unused panels when a switch is made). I get the feeling this is unnecessary (or simpler) when using multiple activities.
Do any of the many B4A experts out there have any opinions on this matter?
On the surface, the main difference I notice is the division of code. If multiple activities are used each activity only needs to contain the code for one layout. I think this would be much easier to manage when coding.
However multiple activities means you must have your data much better organised to ensure the bits you need are available between layouts (not a bad thing but more work that I am used to coming from Delphi!)
Creating and switching between multiple panels in one activity also seems to involve a lot of tedious code (creating the holder-panels, loading the layouts, hiding all the unused panels when a switch is made). I get the feeling this is unnecessary (or simpler) when using multiple activities.
Do any of the many B4A experts out there have any opinions on this matter?