General Tips and Tricks for Thunkable


#1
  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!).
  1. Avoid redundancy
    Probably it helps to read chapter 19 - 21 in Dave’s book http://www.appinventor.org/book2 to get an idea how to do DRY programming with App Inventor - Don’t repeat yourself

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

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

  4. Backup your project frequently

Taifun


OutOfMemory? APP always stop running
App crashes (out of Memory)
My app getting crashed whenever back or home button clicked
Thunkable is unable to compile this app. The compiler error output was
Making screen more than 10 and capacity more than 10 mb
How to show files(PDF etc. which can be changed) to users in my app
Error in builder I need help please
The blocks area did not load properly
Crash Report Touching The Sky! Help!
I cannot open other screens when use another smartphone
App crashes (out of memory?)
My app works fine in live testing but stops working after intalling
App stopped working
What is wrong with Thunkable recently? DX execution failed
Somebody help me - The blocks area did not load properly. Changes to the blocks for screen 6224505411207168_Screen1 will not be saved
Somebody help me - The blocks area did not load properly. Changes to the blocks for screen 6224505411207168_Screen1 will not be saved
Copy blocks to another screen
Runtime Error : Failed to allocate a 8294412 byte allocation with 4320080 free bytes and 4MB until OOM
The blocks area did not load properly. Changes to the blocks for screen 6271615010603008_Screen1 will not be saved
How to open a different website with in a single web view component?
An internal error has occurred. Report a bug? Why Coming this?
Thunkable app keep stoping issue
How solved this problem 'An internal error has occurred", please help me
Enter a value in textbox and if that value exist in the list/table than open a specific screen
My app stops working after the first screen with the attached error. (Used sidebar extension) Any suggestions on this?
App crashes on Screen launch
How to use only one image component for displaying multiple images from a list on only one screen?
Question about multi text
Error message "your app unfortunately has stopped"
Please help me my thunkable app stops working
Error app crashes
Error app crashes
How to create multiscreen in one screen and operate with procedure?
Problem with Taifun's Google Account Extension
App with many images
How to solve this type runtime error?
App crashes when quickly use!
Compiling error message shows when saving the app
Why app is crashing always
Java lang out of memory error help needed
Versión desarrollador funciona, versión APK no. Developer version works, APK version dont
Multiple Scrrens in 1 Screen having Label text positioning issue
App's screen crashed and came back
About tinydb component in thunkable
My application is getting crashed so frequently
Closing a screen that it's not the active one
Bad Apps, Usless Apps
App crashes when navigating between screens
Unfortunately app has stopped thunkable
Regarding webviewer
My app work on thunkable live, but it doesnt work well when i export it and install it on my phone
MY app keeps crashing
Click on a button of screen 1 and want to visible a vertical scroll arrange of screen 2
Memory not free when screen closed
My phone has problem with thunkable
My app works on my tablet but not on my phone. why can it be?
Unable to download .apk file to my computer
Load many image
App crash whenever i switch to next screen
Thank you everyone
Thunkable Stops Unfortunately Everytime
App keep crashing ! Need help!
Unable to display stored data spreadsheet on another screen
I have memory game error.Can you control my aia file?
Copy from screen1 to screen2
RAM Usage restricted to 3MB
RAM Usage restricted to 3MB
Facing problem bt why?
Problem with app
App does not work on other phones
Building failed problem
App not start please help
How to speed up app
How to optimize app and get rid of out of memory?
Unfortunately stop
Making screen more than 10 and capacity more than 10 mb
How Many screen Can I add in one app
The application has stopped
Error Encountered With User App update
App closes unfortunately as i press the Home Screen
How to make 10+ apk in thunkable?
App closes unfortunately as i press the Home Screen
Creating more than ten screens
There are showing unfortunetally app doesnt work at same place
Server error how i resolve
About File Size
Unfortunately app has been stop and how to solve
Blocks Limit might hinder AI performance
My app is not opening..?
There are problems with many blocks?
Button Not Working
Build failed! Sorry, can't package projects larger than 10MB. Yours is 14.92MB
Runtime error until 00m
My app is keep crashing and I can't figure out why
Images are too big / how to scale images
Crashes and delay
Back to Screen1 without initialize
The application has stopped
Play a sound that doesnt stop unless the app is closed
Error with screen "Voti"
New Blocks Editor Arrives
Is There Any Limitation to the Amount of Files We Can Upload to Thunkable?
App crashes when downloading several images
My app stopped with many variables
Is it a good idea to create 20-25 App Screens? [Answer: No!]
App stopped while switching screens
App crash issue
How do I zoom in on an image placed on the screen
Problem with my app
Problem with my app
My application stops working
Why my app crash
How to get deleted App project back?
I cannot access my thunkable project
Solution .How to Copy Paste & Duplicate Screen in Thunkable
Can i create a app having 20 screens
How to set Button visible after timer end
Both App & Beta thunkable.com are very slow & freezing
Component does not exist
Cannot save opened app after 3 month. "Server error."
Blocks area cannot be saved - lost all of my app
Crash problem in different androids
Why downloading the assets takes a lot of time?
Jokes masala app
Multiple screens
Is there a solution for application size?
Multiple Screens with more than 10 Screens
Open a few screen and I got error
Block screen loading very slow
Close Application block
Build Error App is not getting build: The compiler error output was
Server error: could not load file. Please try again later! how to fix?
App Crash when i transfer data from 1 screen to the other
App crashes (because of the size?)
Long scroll screen issue
Sorry the app has stopped...this happens in a cycle sometimes
Screen Limit exists?
Erro ao mudar de screen no menu
Unfortunately app has stopped, Need help please
I can not export to APK file, error message is "The compiler error output was"
Cannot access blocks on screen 2
Design Platform Very sluggish and slow
Question about arrangement of labels please
App Compiling Error: "The compiler error output was"
Duplicate Screen Create
Ads placement and limit
Copying a screen
Screen1 shifting problem
Apk not working after build
[Free] Extension Sidebar Navigation Update 12/04/2018
Why does my app crash?
Maximum blocks per screen
My App exceeds more than 15 screens
¿Como optimizar apps?
What if I want to exceed more than 15 screen?
Slow application
Saving Time and work
Too many assets
The blocks area did not load properly. Changes to the blocks for screen 6271615010603008_Screen1 will not be saved
Can I duplicate a screen?
App crashes (because of the size?)
Max screens number
Can't open project after installing extension
Unable to load the aia file made in AppInventor
Run Time Error problem
How to link a screen to a particular button
IT: Si è verificato un bug - EN: A bug has occured
Error in download apk file to computer
How to create a multi screen photo album?
Compatibility on Google?
Why are all thunkable apps crashing?
Can't figure out why "unfortunately app stopped" EDITED FOR CLARITY
The application has stopped
APP STOP WORKING
My project doesn't work in mobile app Thunkable
I have a problem in using Web Veiwer
More About faulty
How to make notification to turn on GPS?
Cannot add new blocks
Variables Across Screens
Problem with opening new screen with start value useing list picker
App Error Showing during open
The blocks area did not load properly. Changes to the blocks for screen 6271615010603008_Screen1 will not be saved
Internal Errors
How to add numbers in the string
Thunk classic APP won't open
Best way to slide image
App stop working
Error in list view
#2

Cool as always, Taifun!

I wonder how to contact you on creating some extension? :grin:


#3

you could send me a private message through the forum message system or you could have found my contact address on my webpage…

but why don’t you want to ask all extension developers instead of only one?

Taifun


#4

Maybe a bit off-topic. But I thought, why not to give a tip of mine for Thunkers/App Inventors/AppyBuilders/Makeroiders/Mad Robots/Punya Frameworkers there.
There is such thing as Zen of Python, principals for people coding with Python, but it is pretty good for app builders using block system too. I have “translated” every line of Zen of Python, to help people understand, what does every line mean. You can check out Zen of Python & my explanations about every single line here: https://moliata.github.io/Zen-of-Python/


#5

This advice was really useful and it looks like several others have benefited from it as well. Maybe Team Thunkable could incorporate some of this in to your documentation so that users don’t make these mistakes. (I was stuck with image-sizing errors till I saw this).

Thanks Taifun!