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

Summary

Creating and using procedures helps make more consistent and easier-to-follow code. As you saw in this application, you can reduce the amount of programming time by calling blocks of code.

As we build more complex apps, using procedures will make the workload more manageable and support applications that are easier to tweak, debug, and customize. As you learn to build lists, work with sensors, and manage GPS coordinates, you will find that the block code can get rather large. Using procedures is a way to make this more controlled and give you the ability to more quickly go back into the blocks to see if you need to resolve any issues.

Procedures will continue to play a role in other applications you build—also be on the lookout for how ...

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