General Tips and Tricks for App Inventor/Kodular

  1. Use different screens wisely
    Before starting to create another screen, first you should think about is it really necessary? See also Building apps with many screens and SteveJG’s post about advantages/disadvantages, because in only one screen you also can use vertical arrangements to simulate different screens, just set the arrangements to visible = true/false as needed…
    If you decided to use different screens, then you should switch them correctly, else you will run out of memory after a while… The recommended method of switching screens in App Inventor

  2. App Inventor works best if you use images whose size matches the size you want them to appear on your screen. If you import larger images into your app, your app may run out of system memory. Using Images with App Inventor

    by @Italo
    First, you need to understand that the file size of an image is not the amount of memory it uses when it’s being displayed. The file size is the compressed size, much like a zip or rar file. When viewed, the image needs to be decompressed.
    For example, if your image says its file size is 100 kb, and its dimensions are 1024 x 768, 32 bit color, then that image uses over 3 mb of RAM (not 100 kb!) when you show it on the screen. ((1024 * 768 ) * 32) / 8 = 3,145,728 kb (3 mb)

    Now, this is a mistake most people make when using arrangements as “virtual screens”: They set different image components with their images loaded but hidden, instead of having only one image component and changing the picture according to the user’s selection or app events, not knowing that apparently the hidden image components are also using the ram, (yes, even though they are invisible!).

  3. Avoid redundancy
    Probably it helps to read chapter 19 - 21 in Dave’s book App Inventor 2 Book: Create Your Own Android Apps to get an idea how to do DRY programming with App Inventor - Don’t repeat yourself

  4. See SteveJG’s monster list of tips and tricks

  5. How to overcome the App Inventor project limit of 10 MB

  6. Backup your project frequently


Builder slow with many blocks
App crashing: Runtime error
Problem with card viewer extension please help me
I am getting error in my app "Failed to allocate"
Problem with card viewer extension please help me
When I Use High Quality Image in Splash Screen Then My App Is too much crashing
Makeroid is hanging when I use 6 or 7 screen
Sidemenu problem
The ability to create more than 10 screens
Getting error when getting data from spreadsheet
How to switch screens correctly
What is this error is about?
What is this error is about?
Logs for finding crash reasons
Application crashes on specific screen
Can't use the firebase auth extension
(Rajesh Kedari) #2

How many screens you advice which will not cause memory issues ?



The first tip answers your query right away :point_down:

Follow the other links given in the first tip itself, to find more information!