CONTENTS IN DETAIL

ACKNOWLEDGMENTS

INTRODUCTION

What Is App Inventor?

Who Should Read This Book?

What’s in This Book?

How to Use This Book

Getting Started with App Inventor

Live-Testing Your Apps

Connecting Your Phone to the Computer

Using the Onscreen Emulator

A Note on Conventions

Handling Duplicate Components

Appearance of Block Inputs

Apps Created on Windows

1
BUILDING APPS WITH APP INVENTOR

Planning a New App

Laying Out Your App

Programming Your App in the Blocks Editor

Building the “Hi, World!” App

Decomposing “Hi, World!”

Laying Out “Hi, World!” in the Designer

Programming “Hi, World!” in the Blocks Editor

Sharing “Hi, World!”

Summary

On Your Own

2
APP INVENTOR AND EVENT-DRIVEN PROGRAMMING

Building the “Practice Makes Perfect” App

Decomposing “Practice Makes Perfect”

Laying Out “Practice Makes Perfect” in the Designer

Programming “Practice Makes Perfect” in the Blocks Editor

Step 1: Starting the App

Step 2: Opening the Video Recorder

Step 3: Choosing the Video Clip to Play

Step 4: Playing the Video Clip

Summary

On Your Own

3
FRUIT LOOT: CREATING A SIMPLE ANIMATED GAME

Animating and Moving Randomly

Programming Moving Images

Setting Up Random Appearance, Speed, and Location

Declaring and Initializing Variables

Building the “Fruit Loot” App

Decomposing “Fruit Loot”

Laying Out “Fruit Loot” in the Designer

Adding and Arranging User Interface Components

Setting Up the Canvas and ImageSprites

Adding and Preparing Non-Visible Components

Programming “Fruit Loot” in the Blocks Editor

Step 1: Starting the Game

Step 2: Making Fruit Drop at Random

Step 3: Creating More Falling Fruit and Counting Dropped Fruit

Step 4: Letting Players Move the Picker to Catch the Fruit

Step 5: Hiding Caught Fruit and Keeping Score

Summary

On Your Own

4
MULTIPLICATION STATION: MAKING DECISIONS WITH CODE

The Selection Control Structure

Using an if then Block in the “Fruit Loot” Game

Building the “Multiplication Station” App

Decomposing “Multiplication Station”

Laying Out “Multiplication Station” in the Designer

Setting Up the Welcome Screen

Creating the Practice Screen

Programming “Multiplication Station”

Step 1: Playing the Welcome Message

Step 2: Moving to the Practice Screen

Step 3: Displaying Random Multiplication Problems

Step 4: Checking Answers

Step 5: Ending Practice and Showing the Final Score

Testing the App

Summary

On Your Own

5
BEAT THE BUS: TRACKING LOCATION WITH MAPS AND SENSORS

Building the “Beat the Bus” App

Decomposing “Beat the Bus”

Laying Out “Beat the Bus” in the Designer

Programming “Beat the Bus”

Step 1: Choosing the Phone Number to Text

Step 2: Choosing the Destination

Step 3: Starting Location Tracking

Step 4: Tracking the Journey

Summary

On Your Own

6
TIC TAC TOE: USING LOOPS TO CREATE A GAME

Using Loops in App Inventor

The for each number Loop

The while Loop

The for each item Loop

Building the “Tic Tac Toe” App

Decomposing “Tic Tac Toe”

Laying Out “Tic Tac Toe” in the Designer

Programming “Tic Tac Toe”

Step 1: Setting Up the Tic Tac Toe Game Board

Step 2: Responding to Player Moves

Step 3: Programming the Reset Button

Testing the App

Summary

On Your Own

7
MULTIPLICATION STATION II: REUSING CODE WITH PROCEDURES

Procedures Can Take Parameters

Creating Your Own Procedure

Defining the Parameters

Calling the Procedure

Building the “Multiplication Station II” App

Decomposing “Multiplication Station II”

Laying Out “Multiplication Station II” in the Designer

Programming “Multiplication Station II”

Step 1: Setting Problem Level Choices and Playing the New Welcome Message

Step 2: Stating the Number of Seconds for Each Problem and Opening the Practice Screen

Step 3: Displaying the Practice Problems

Summary

On Your Own

8
VIRTUAL SHADES: DRAWING AND DRAGGING IMAGES

Building the “Virtual Shades” App

Decomposing “Virtual Shades”

Laying Out “Virtual Shades” in the Designer

Programming “Virtual Shades” in the Blocks Editor

Step 1: Setting the Selfie as the Canvas Background

Step 2: Adding Sunglasses to Choose From

Step 3: Selecting a Pair of Sunglasses to Try

Step 4: Trying On Sunglasses

Step 5: Letting Users Draw on the Canvas

Step 6: Letting Users Type on the Canvas

Step 7: Letting Users Save a Picture of the Canvas

Step 8: Letting Users Clear the Canvas

Summary

On Your Own

APPENDIX
APP INVENTOR COMPONENTS AND BUILT-IN BLOCKS

App Inventor Components

User Interface Components

Layout Components

Media Components

Drawing and Animation Components

Maps Components

Sensors Components

Social Components

Storage Components

Connectivity Components

Other Components

App Inventor’s Built-in Blocks

INDEX

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.0.192