TalkToMe Part 2: Shaking and User Input



Similar documents
App Inventor Beginner Tutorials

TalkToMe: A beginner App Inventor app

CHAPTER 1 HelloPurr. The chapter covers the following topics:

BallBounce: A simple game app

Hello Purr. What You ll Learn

MIT App Inventor Getting Started Guide

American Sign Language Alphabet App (Project #2) (Version 2 of App Inventor) Description:

BallBounce: A simple game app

Mobile Apps with App Inventor

Or working offline with the local server: Once you have the App Inventor running type into your browser

I Have a Dream, a Two-Part Introductory Tutorial

App Inventor Drum Machine Instructions (Project #1) (Version 2 of App Inventor) Description:

Girls Make Apps Workshop FAQ

Installing Java 5.0 and Eclipse on Mac OS X

Setting up an account and logging in using Design & Print Online. Opening a saved project

CHAPTER 14 Understanding an App s Architecture

Educational App Development Toolkit for Teachers and Learners

PaintPot. Figure 2-1. The PaintPot app

App Inventor Tutorial 4 Cat & Mouse Game

Xylophone. What You ll Build

Scientific m-learning. 4-7 June Mobile Application Development using App Inventor for Android Devices

Creating a New Search

Scanning Documents into OneSite The Preiss Company

DESIGNING YOUR WEBSITE. The following guide will show you how to setup your music website using

Using Google Tools for Homework Jill Robbins, Ph.D. Test Developer, Second Language Testing, Inc., Rockville MD

What You ll Build. CHAPTER 3 MoleMash

How a Teen can use "Budget" to manage their money

CHAPTER 18 Programming Your App to Make Decisions: Conditional Blocks

Using Google Docs in the classroom: Simple as ABC

CHAPTER 4 No Texting While Driving

Terminal Four. Content Management System. Moderator Access

Tutorial for Creating a DEBA Lawyer Directory Listing

Haiku LMS Quick Start A Helpful Guide for Teachers

How to use a SMART Board

ClickView Digital Signage User Manual

VERVE 2 First Time User Guide

Smartboard Tutorial. 1. Setting up the Smart Board and Presentation Cart. 2. Orienting the Board. 3. Smartboard Toolbars. 4. Inserting a New Slide

SUNY Adirondack

Module 2 Cloud Computing

Cleaning your Windows 7, Windows XP and Macintosh OSX Computers

RAMP for SharePoint Online Guide

NDVD Online Movie Scheduling Tutorial

TUTORIAL: BOARDMAKER STUDIO START-UP

Work With the Link Library App

OET Cloud Services Getting Started Guide

Quick Start Guide to Logging in to Online Banking

and forms from multiple folders simultaneously to send out for e signing as the system will automatically create a Queue as you select documents.

Section 1: Overture (Yahoo) PPC Conversion Tracking Activation

How to search for, view and download e-books and audio books onto your portable devices (i.e., i-pad, i-phone etc.)

12Planet Chat end-user manual

Remote Viewer Recording Backup

New Participant Digital Certificate Enrollment Procedure

WorldPay Mobile Demonstration

CHAPTER 11 Broadcast Hub

CHAPTER 11 Broadcast Hub

Creating an itunes App Store account without a credit card

Fruit Machine. Level. Activity Checklist Follow these INSTRUCTIONS one by one. Test Your Project Click on the green flag to TEST your code

Online Registrations for Summer Programming Josh Muse & Hannah Peacock (hpeacock@colchestervt.gov)

How to search for and view our school district's e-book/audio book collections on a computer

Comprehensive Medical Billing and Coding Student CD Quick Start Guide By Deborah Vines, Ann Braceland, Elizabeth Rollins

Smartphone Development Tutorial

QAS Small Business for Salesforce CRM

Mobile App Design Tool for Smartphones: A Tutorial

DiPOS User Manual. Tel: Fax: Address: Industrial Dr., Fremont, CA 94538

Using the Educator Dashboard

CATIA Basic Concepts TABLE OF CONTENTS

Managing Existing Mobile Apps

Administration User Guide

Introduction to Office Live

Fax-to- USER GUIDE

LiveEngage Setup Guide

DomainSherpa.com: The Domain Name Authority. Google AdWords Keyword Planner for Domain Name Investors

To learn more about social networking, see the handout titled Know Social Networking.

ClickView app for iphone and ipad User manual for admins/teachers

Salesforce Administrator s Installation Guide

App Inventor Tutorial 11 QR Code Reader

Color Schemes. Basics 1

Installing Remote Desktop Connection

Teacher Website User Manual. Krystal Arnold Twelve Bridges Middle School

Mobile Programming (MIT App Inventor 2)

Munis Payroll Entry Instructions

Step 1: Download and install the CudaSign for Salesforce app

Work with the File Library App

This chapter introduces the following App Inventor components and concepts:

SchoolMessenger for iphone

Getting started 7. Designing interfaces 27

Google Drive Create, Share and Edit Documents Online

Note Google and YouTube may change the appearance of their sites from time to time, so the buttons or links may not always appear in the same place.

Ecommerce and PayPal Shopping Cart

Recording audio from your computer.

How to Build a Web Site using your Web Host s Web Site Builder

top five cognos reports

supervisorapp A GUIDE TO USING THE SUPERVISOR APP For version 3.0.0

How to Complete the Online Course Work for an Entry Level Clinic

Using UMCmarket to make micro-donations to our church!

Faculty Guide to Mobile Tests. For Blackboard Learn 9.1 Clients using Blackboard Mobile Learn 3.0

In list view, the Finder window displays folder or volume contents as a list, which can be sorted by name, date, kind, or other criteria.

Creating Animated Apps

EFORMS MANUAL FOR SHAREPOINT ONLINE

First Week Formalities Brian Keeney January 11, 2005

Transcription:

TalkToMe Part 2: Shaking and User Input This tutorial shows you how to extend the basic TalkToMe app so that it responds to shaking, and so that the user can make the phone say any phrase s/he types in. Go to App Inventor on the web and log in. Go to appinventor.mit.edu and click "Create" or log in directly at ai2.appinventor.mit.edu. TalkToMe Part 2: Shaking and User Input - 1

Open the "TalkToMe" project that you worked on in the last tutorial. App Inventor will always open the last project you worked on, so you may automatically be taken into your TalkToMe app. Go to the Designer Tab Your project may open in the Designer. If it does not, click "Designer" in the upper right. TalkToMe Part 2: Shaking and User Input - 2

Add an Accelerometer Sensor In the Sensors drawer, drag out an AccelerometerSensor component and drop it onto the Viewer. (It's a non-visible component, so it drops to the bottom of the screen.) NOTE: emulator users should skip this part and proceed to the next section of this tutorial called "Say Anything". (The emulator can not respond to shaking!) TalkToMe Part 2: Shaking and User Input - 3

Go to the Blocks Editor Click "Blocks" to program the new Accelerometer Sensor that you just added. Program the Accelerometer Shaking event Click the AccelerometerSensor1 drawer to see its blocks. Drag out the when AccelerometerSensor1.Shaking do block and drop it on the workspace. TalkToMe Part 2: Shaking and User Input - 4

What do we want the app to do when the accelerometer detects shaking? Copy and paste the blocks that are currently inside the when Button1.Click event handler. You can select the purple block, then hit the key combination on your computer to copy and then to paste. You'll have a second set of blocks to put inside the when Accelerometer.Shaking block. (Alternatively, you can drag out a new call TextToSpeech1.Speak block from the TextToSpeech drawer, and a new pink text block from the Text drawer.) Change the phrase that is spoken when the phone is shaking. Type in something funny for when the phone responds to shaking. TalkToMe Part 2: Shaking and User Input - 5

Test it out! You can now shake your phone and it should respond by saying "Stop shaking me!" (or whatever phrase you put in.) Say Anything Is your phone talking to you? Cool! Now let's program the button click so that it causes the phone to speak whatever phrase the user put into the text box. Go back to the Designer. TalkToMe Part 2: Shaking and User Input - 6

Add a Text Box to your user interface. From the User Interface drawer, drag out a TextBox and put it above the Button that is already on the screen. Back to the Blocks Editor! TalkToMe Part 2: Shaking and User Input - 7

Get the text that is typed into the TextBox. Get the text property of the TextBox1. The green blocks in the TextBox1 drawer are the "getters" and "setters" for the TextBox1 component. You want your app to speak out loud whatever is currently in the TextBox1 Text property (i.e. whatever is typed into the text box). Drag out the TextBox1.Text getter block. TalkToMe Part 2: Shaking and User Input - 8

Set the Button Click event to speak the text that is in the Text Box. Pull out the "congratulations..." text box and plug in the TextBox1.Text block. You can throw the pink text block away by dragging it to the trash in the lower right corner of the workspace. Test your app! Now your app has two behaviors: When the button is clicked, it will speak out loud whatever words are currently in the Text Box on the screen. (if nothing is there, it will say nothing.) The app will also say "Stop Shaking Me" when the phone is shaken. TalkToMe Part 2: Shaking and User Input - 9

Congrats! You've built a real app! Give some thought to what else this app could do. Here are some ideas for extensions: - Random phrase generator - Mad Libs - player chooses noun, verb, adjective, adverb, person and it picks one from a list that you program. - Magic 8 Ball App - Name picker - useful for teachers to call on a student You could also play around with Speech-To-Text. Have fun! TalkToMe Part 2: Shaking and User Input - 10