General Tips and Tricks for App Inventor/AppyBuilder

howto

#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

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

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

  3. Backup your project frequently

Taifun


Can app be crash by adding many blocks..?
Debugging app crash?
What is The proble,
Unable to close app!
La aplicación se cierra muy a menudo
I need your help please. My app keep closing
Unfortunately app has stoped when installed
I have a screen with this name(main) but it’s show can’t find
My app is stopped
App working in live testing but not working in phone
Exit buttom phone
Unfortunately App has been stopped
App Crashes With Android Marshmallow and above
My Application Stopped working After Splash Screen Timer overs
On load error when trying to open my project
Hi, Maximum Screen to create without issue?
What is this problem app not supported to Any apps device
Bad Apps ... Useless
Close current screen and open a new one
Check my app screen 1 open and then close app why?
My app are getting stopped
App crashing with Out of memory error .please help
Unfortunately app has stopped
Out of memory error
Can I open an AppyBuilder project .aia file in Thunkable?
Unfortunately Stop
Application Forced Stopped why this is happening?
Screen deleted without my knowledge
Problem With App
App Always Crashing
My app crashes while opening screen2
App stopped! Please help
Good strategy to build an dichotomous key app
Out Of Memory Error with compiled file
My register screen always show unfortunately stop why
Appybuilder Offline Build Apk Error Occurred
Appybuilder is unable to compile the project
App crashing after installing
I don't know the reason of the compile error
Servor error could not build project
Duplicate screen
Rewarded video ,- is it possible to load ad in one activity and show in another
Copy data and blocks to an other screen
Direct Download
Problem with Gold.Appybuilder.com
Using 1 tinydb with 2 apps
Blocks aren't shown
Live testing not working
App always crashing when i open screen second time
How To optimize apps?
Limit of mb apps?
App freezes after app start
Notifier not work properly
Maximum no of screen
Error compiling apk Gold
I need your help please
Using Multiple Screens
Completely deleted Blocks Screen
APP not working
App crashes randomly
"Runtime Error" message showing
Crashing App when doing blocks
App keep stopping on some devices
My app stops and I don't know why
Procedures on different screens?
App Crashes when trying to go to next page
Unable To Compile Apk And Copying Screen Error
Multiscreen Backspace
Change of home screen (initial screen)
Problems running my application
Live tester not working
#2

Hi @Taifun,

I edited your post to show all info that is also present in your Thunkable topic. I hope you don’t mind?

This should be obligated reading before starting to develop apps on any builder.


#3

Excellent, @Peter_Mathijssen!!