Android Question Limits of B4A

AlpVir

Well-Known Member
Licensed User
Longtime User
What are the limits of B4A ?
- each Activity can exceed 64K ?
- how many panels you can fit into a Activity (and usually how many view) ?

Assuming to be very very neat writing code it is conceivable to reduce a fairly complex app with a single Activity with many (5-10-20) of panel (each different from the other with label, edit text, button, etc.) , which only one is visible at a certain time ?
Yanks in advance
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
There aren't any hard limits. B4A creates native Android apps. These apps are not different than apps created with Java.

- each Activity can exceed 64K ?
- how many panels you can fit into a Activity (and usually how many view) ?
- Yes.
- There isn't any limit. I guess that if you create millions of panels you will run out of memory...
 
Upvote 0

NJDude

Expert
Licensed User
Longtime User
What are the limits of B4A ?
- each Activity can exceed 64K ?
- how many panels you can fit into a Activity (and usually how many view) ?

Assuming to be very very neat writing code it is conceivable to reduce a fairly complex app with a single Activity with many (5-10-20) of panel (each different from the other with label, edit text, button, etc.) , which only one is visible at a certain time ?
Yanks in advance
Since I'm a "Yank" I'll reply: :D

You can indeed create very complex activities and add loads of views, however, the way you are proposing to write an app is not recommended, meaning, one single activity and lots of panels and change their visibility as needed, it is recommended to have separate or individual activities, that's how Android is designed to do it, the idea of a single activity will become a nightmare when it's time to debug, update, and maintain the code.
 
Upvote 0
Top