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 or Kodular project limit

  6. Backup your project frequently

Taifun

30 Likes
How to switch screens correctly
Save screen state
ANRs & Crashes Problem
App crashing: Runtime error
Getting error when getting data from spreadsheet
When I Use High Quality Image in Splash Screen Then My App Is too much crashing
TinyDB loses the data
Help please - How do I send values to another screen
Can use 20 to 25 screen in my app
Audio plays twice between screens
RUNTIME ERROR : failed to allocate 1048588 byte allocation with 285152 with free bytes and 278 KB until OOM
App crashing when open another screen with start value btn is clicked
Is there a block limit?
Help me on this problem, DX execution failed, too many screens
How many screens
OOM Exception : Runtime Error stack size 8MB
"Ooops! We tripped on a Bug!" message and "DX execution failed" error
Error Download .APK
Kodular give error when use more than 50 pictures
LISTVIEW - variable, tinydb
My application closes by itself
Second page doesn't open
Detect touch up when already touching down after screens transition
Runtime error why sometimes this error is coming if i get all downloaded pdf from storage (google drive) in list
Save everything when the app is closed
A specific project does not load on the platform. What can it be?
I want to receive data from other screen
I want to edit title bar the current screen then other screen auto update
I want to edit title bar the current screen then other screen auto update
Problems with custom app themes
After 11 screen what will happen?
After 11 screen what will happen?
DX execution failed
Why do I only fail with 13 screens
App opens directly to app info screen
Server Error, Could not upload project
Is it possible to display a timer in multiple screens and still be functional?
App Keeps Crashing
DX execution failed
How to exchange data between screens
How to send images from screen 1 to screen 2
Side Menu Layout component (Image header)
What are screens needed for?
What is the error message java.lang.OutOfMemoryError: ... about?
Export apk doesn't work... "invoking AAPT"
Lock Bottom Navigation bar for every screen
Kodular is unable to compile this project. The compiler error output was
Kodular is unable to compile this project. The compiler error output was
Loading Time Too Long?
Failed to compile
I’m not able to compile the app. Server error
I’m not able to compile the app. Server error
How can i save response json api file to use it in multiple screens
Return to an already opened screen
OutOfMemory error
Why Kodular Cannot Save Last 10 to 8 Minute Of My Project Blocks In Every Session, Still I have A Good Network Connection
Having runtime error
YAIL compiler - DX execution failed
App automatically closing upon changing screen [SOLVED]
Razorpay payment
Reduced Screen1 startup time
How to add multiple images as button on one screen?
How can I use variables in several screens?
Is it normal having a 8 seconds splash screen?
OutOfMemoryError while using REAL DEVICE
How do I use a 'template' screen as background for all my app screens?
Sound not function after export to apk file
Apk file is not working after export
Make application faster
Side Menu - Simplest way to use the component
After app activity resumed the app is going back to screen1 automatically
Unfortunately app has stopped error on screen switch
Companion crash in Android 6.0.1
Store PDF in the application itself
Cant copy screen showing server error
Need help on such huge error
How to do a list
Use Second Screen
App crashing: Runtime error
Too many crashes after app update!
Crash of the App - Probably due Screen swapping?
Trying from last 2 days.....did no change in app.....earlier it was exporting properly
Use Swipe Card View Text & Image
Testing App to publish
Changed selected colour images in bottom navigation
Help me i have problem with notify
App with several Screens
java.lang.OutOfMemoryError: Failed to allocate a 63701004 byte allocation with 33550904 free bytes and 55MB until OOM
Storing Data to TinyDB behaves strangely! Is it a bug?
Erro e encerramento do app
How do i take details stored in text boxes from one screen to another?
How can i switch screen with different way
Minimal Wallpaper app ui
What is it ? someone help me
Is there any variable which can be access from everyscreen
App taking 48 mb after install
Kodular getting slower
My App is crashing
My App is crashing
Jpg more 4000 px width
Erro compilation in my project
App crashes when installed but not in live companion testing?
App always crash when startup
#Kodular Project is Slowing Down...!
How to use card view extension?
Coming empty string error
I created a big project on kodular and now its taking so much time to open it why?
App is crashing everytime
Amazing app work done by me
App is crashing everytime
Screen Not coping
Too many screens
Radio does not turn off, audio diplomatic
How many Screens
[Global Variable] Use a global variable for all the screens?
Any way to close a screen that was left open?
My app is crashing for few users
App is crashing on openning a new screen through button
Builder slow with many blocks
Can't use the firebase auth extension
Sidemenu problem
Makeroid is hanging when I use 6 or 7 screen
Problem with card viewer extension please help me
I am getting error in my app "Failed to allocate"
The ability to create more than 10 screens
Problem with card viewer extension please help me
Application crashes on specific screen
What is this error is about?
What is this error is about?
Logs for finding crash reasons
Restart the Application with a button or method?
Why not unlimited screen for kodular premium?
Filed to allocate a 7480012 byte allocation with 2824120 free bytes and 2mb until OOM
My app getting closed when open another screen
Run time exception error
How does Kodular maintain screens, really?
Compiling Source Files Error while trying to export an apk or bundle
Another bug on kodular
My app is automatically stopping this is the report
Can i use 30 screens in one app?if i do then what would be
Screen Confusion... Which one to use and why
Image listview issues
Bluetooth Client Question
Screens changed the order when after saving and closing the app
How to add event,text to datepicker date
Think kodular should update its site
Other screen closed event issue
"Compilation error"
I want to backpress screen to previous screen

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

@gabrialked

The first tip answers your query right away :point_down:

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

3 posts were split to a new topic: I want my label to become visible slowly how can i do it