Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps
by Derek Walter, Mark Sherman
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access