Programming the blocks

Now that we've designed most of the user interface of the Event app, we will switch to the Blocks editor to program our app. Click on the Blocks button in the upper-right corner of the Designer. You will find that throughout the building of this app (as with any app), you will go back and forth between the Designer and Blocks editor.

Navigating between screens and launching maps

In the Blocks editor, we will code the navigation buttons to launch the appropriate screen. For example, when the user presses the Info button, we want the app to open Info_Screen.

Screen1

In the Blocks Editor, make sure you are on Screen1 by verifying that Screen1 (and not one of the other screens) displays on the menu button. In the Blocks palette ...

Get App Inventor 2 Essentials now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.