5. Procedures

Apps can perform many different tasks. The more complex the application, the more programming is required to make these specific tasks happen. As you build more utility into your App Inventor apps, the number of blocks can get rather unruly. By learning to use procedures, you can keep your code nice and tidy while building in all the specific instructions necessary for each app.

The following section gives you a more detailed description of how procedures work in the App Inventor. Then we practice using some procedures before putting them to use in the exercise at the end of the chapter.

This exercise gives you some good practice, but it should be the start of applying procedures to apps in different circumstances. Procedures are ...

Get Learning MIT App Inventor: A Hands-On Guide to Building Your Own Android Apps 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.