O'Reilly logo

Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps by Mark Sherman, Derek Walter

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating an Empty List

For now, we’re going to make some lists and store them in variables. This is a common technique, but keep in mind that lists don’t always have to go straight into variables.

To create our first list, we’re going to create a global variable definition (refer to Chapter 4, “Variables”) and drag in the create empty list block (see Figure 6.4).

Image

Figure 6.4 Create a global variable definition and drag in the create empty list block.

Now we have a list! We can give it a name by renaming the global variable. Let’s call it my_list (see Figure 6.5).

Figure 6.5 Rename the global variable to my_list.

Now whenever you use the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required