Building Apps with many screens

Since I need more side app I'm following the suggestion

http://ai2.appinventor.mit.edu/reference/other/manyscreens.html

However, the system does not work for me. These are my Blocks.

Image-2

image
This isn't how it is done.
There is a dedicated block to do so.
Add a TinyDB on Screen2 and use the get value block.

image

image

Hello Igor

Firstly - do you really really need many Screens? Just how many do you need and what does your App do that requires them? It is in fact highly unusual to need many screens - the Apps on your phone now, how many of them use lots of screens?

If it turns out that your App has to be a giant on a small device, the best way to achieve that is to use Virtual Screens. This eradicates the need for extra blocks, variables and storage. Switch-Screen Issues do not exist. They also make more efficient APK's.

Screen1 is the ‘real’ Screen and device-sized Vertical Arrangements on it are displayed/hidden as required - they are the Virtual Screens!

Tabbed Virtual Screens Demo

I love your Screen2.Initialize.

You are the first person to make this error that I have seen in years of ai2 debugging.

I'll bet you have coded in text so long it has become ingrained?

P.S. TinyDB tags are case sensitive, so double check the corrections in this thread.

1 Like

you might want to read tip 1

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by icon24 Taifun.