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

Do It

App Inventor provides one great tool for testing and debugging: Do It. You can right-click on any block at any time, as long as a device or emulator is connected, and select Do It from the menu. This option runs that block immediately on the device, even if it is not inside an event (see Figure 8.7).

Image

Figure 8.7 Using the Do It feature to immediately run any block.

The Do It feature is simple, and you can use it in many ways, depending on what blocks you have and what you need to test. Here are some examples of how you can use Do It to help with testing and debugging:

Reset lists (set a list to an empty list)

Move sprites to start locations ...

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