No Texting While Driving. Introduction You'll design the app so that it sends a response to any text message received. You'll also allow the user to customize.

Slides:



Advertisements
Similar presentations
JQuery MessageBoard. Lets use jQuery and AJAX in combination with a database to update and retrieve information without refreshing the page. Here we will.
Advertisements

Understanding an Apps Architecture ASFA Computer Science: Principles Fall 2013.
Programming with App Inventor Computing Institute for K-12 Teachers Summer 2012 Workshop.
The Web Warrior Guide to Web Design Technologies
靜宜大學資管系 楊子青 1 Programming Your App’s Memory 靜宜大學資管系 楊子青
Programming with App Inventor Storing Data
Guide to Oracle10G1 Introduction To Forms Builder Chapter 5.
® IBM Software Group © 2006 IBM Corporation Additional AJAX Examples and Workshops This learning module provides additional AJAX use cases and examples.
Introduction To Form Builder
Ch 14. Understanding an App’s Architecture Two perspectives 1.Programmer: a)Components & Behaviour b)Designed in Component designer Blocks editor 2.End-user:
Chapter 6 Graphical User Interface (GUI) and Object-Oriented Design (OOD)
Programing App Inventor. Variable Declaration App Inventor: Declare Variables using the “Define Variable As” Block – Find the Blocks Editor (top-left),
Microsoft Access 2007 Microsoft Access 2007 Introduction to Database Programs.
Chapter 6: Graphical User Interface (GUI) and Object-Oriented Design (OOD) J ava P rogramming: Program Design Including Data Structures Program Design.
Microsoft® Small Basic The Controls Object Estimated time to complete this lesson: 1 hour.
Chapter 9 Collecting Data with Forms. A form on a web page consists of form objects such as text boxes or radio buttons into which users type information.
Creating Mobile Apps with App Inventor! Day 5 Google search Kris Gordon Ludlow for links.
Microsoft® Small Basic
Reading Data in Web Pages tMyn1 Reading Data in Web Pages A very common application of PHP is to have an HTML form gather information from a website's.
Confidential - © 2012 StreamWIDE © StreamWIDE
KJOlinski.com - RapidHMI INTRODUCING RapidHMI AND PLCExplorer.
WC2011 Programming Mobile Devices Android Development Day 2.
Quick Reference Guide New functionalities within your hotelcareer company center.
Android, where is my car? Summary. This is the just the summary of topic after it was taught in the lecture class. The LocationSensor component can report.
Mail merge letters are used to send the same or similar documents to many different people. Since they contain the recipient’s name, address, and other.
LiveCycle Data Services Introduction Part 2. Part 2? This is the second in our series on LiveCycle Data Services. If you missed our first presentation,
PHP meets MySQL.
06/10/2015AJAX 1. 2 Introduction All material from AJAX – what is it? Traditional web pages and operation Examples of AJAX use Creating.
靜宜大學資管系 楊子青 1 Working with Databases (II) 靜宜大學資管系 楊子青
App Inventor MIT App Inventor.
Lecture # 6 Forms, Widgets and Event Handling. Today Questions: From notes/reading/life? Share Personal Web Page (if not too personal) 1.Introduce: How.
First App Bhanu Kishan. Note Before proceeding further, please go through the MIT App Inventor tutorials in Youtube for better understanding the slides.
Using Assets with Dashboards A Guide. About this Guide This guide shows how to create, export, and load a dashboard that requires an asset This guide.
System Initialization 1)User starts application. 2)Client loads settings. 3)Client loads contact address book. 4)Client displays contact list. 5)Client.
Chapter 8 Collecting Data with Forms. Chapter 8 Lessons Introduction 1.Plan and create a form 2.Edit and format a form 3.Work with form objects 4.Test.
Summer Computing Workshop. Introduction  Boolean Expressions – In programming, a Boolean expression is an expression that is either true or false. In.
Technovation Incorporating Feedback Week 4. Check-in: paper prototype By now, your paper prototype should be complete, so that you can begin creating.
Quiz Me Tutorial. Introduction QuizMe is a trivia game (the example uses baseball) you can use as a template to build quizzes on any topic. The user steps.
HTML Form Widgets. Review: HTML Forms HTML forms are used to create web pages that accept user input Forms allow the user to communicate information back.
Introduction to JavaScript CS101 Introduction to Computing.
What is Programming? Computer programming is about telling the computer what it is we want it to do We tell the computer what we want it to do by sending.
PROGRAMMING IN VISUAL BASIC.NET VISUAL BASIC PROGRAMMING FUNDAMENTALS Bilal Munir Mughal 1 Chapter-8.
Java Programming: From Problem Analysis to Program Design, 3e Chapter 6 Graphical User Interface (GUI) and Object-Oriented Design (OOD)
Class Builder Tutorial Presented By- Amit Singh & Sylendra Prasad.
Visual Basic for Application - Microsoft Access 2003 Programming applications using Objects.
Incorporating Feedback Lesson 5 0. Check-in: paper prototype By now, your paper prototype should be complete, so that you can begin creating your app.
Java Programming: From Problem Analysis to Program Design, Second Edition1 Lecture 5 Objectives  Learn about basic GUI components.  Explore how the GUI.
GUIs Basic Concepts. GUI GUI : Graphical User Interface Window/Frame : a window on the screen Controls/Widgets : GUI components.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
Post-Facto Data Entry. When you see a Red circle or a next button, like this, that means we want you to click on something. These are the same steps you’ll.
Let’s demonstrate some KRAD Action Components Kuali University: Apply Now Lab 3: Actions Lab Objectives Understand how to setup an action that invokes.
PHP Form Processing * referenced from
Chapter 6 Graphical User Interface (GUI) and Object-Oriented Design (OOD)
Navigating Your myAccess Account. Log In to myAccess… To access your account go to the Disability Center’s website; disabilitycenter.missouri.edu and.
 Learn the mechanics of using App Inventor to build apps.  Learn how to design an app’s user interface with the App Inventor Designer, and its behavior.
Y.-H. Chen International College Ming-Chuan University Fall, 2004
Venture A guide to Advance ing
Visual Programming week # 02 APP (Application) Architecture.
Understanding an App’s Architecture
How to Create Message Template in Hotmail?
Java Programming: From Problem Analysis to Program Design,
Chapter 16 – Programming your App’s Memory
Understanding an App’s Architecture
Use proper case (ie Caps for the beginnings of words)
Working with Databases (I) 靜宜大學資管系 楊子青
Introduction to TouchDevelop
Navigating Your myAccess Account
Programming Lists of Data 靜宜大學資管系 楊子青
YOUR text YOUR text YOUR text YOUR text
STAYING SAFE WITH TECHNOLOLGY View the following presentation and try to click on the correct answers of the slides with questions.
Presentation transcript:

No Texting While Driving

Introduction You'll design the app so that it sends a response to any text message received. You'll also allow the user to customize the response sent. This Lessson introduces the following App Inventor concepts: The Texting component for sending texts and processing received texts. The TinyDB database component for saving the customized message even after the app is closed.

Set up the Components

Component TypePalette GroupWhat you'll name itPurpose of Component LabelBasicPromptLabel Let the user know how the app works TextBoxBasicMessageTextbox User will enter custom response here. Button Basic SubmitResponseButton User clicks this to submit response TextingSocialTexting1 The component that processes the texts TinyDBBasicTinyDB1 The component that will store the response in the database Set the properties of the components in the following way: Set the Text of PromptLabel to "The text below will be sent in response to all texts while this app is running." Set the Text of MessageTextbox to "I'm driving right now, I'll contact you shortly". Set the Text of SubmitResponseButton to "Modify Response".

Add behaviors to the components When a text is received, the message entered in MessageTextbox is sent as a text message response to the sender. When the user modifies the custom message in MessageTextbox and clicks the SubmitResponseButton, the new message is saved persisently in the phone's database. When the app begins, the custom message is loaded from the database into MessageTextbox.

Responding to a text When a text message is received by the phone, the Texting.MessageReceived event is triggered. Your app should handle this event by setting the PhoneNumberand Message properties of the Texting component appropriately and sending the response text.

U will need the following blocks: Block TypeDrawerPurpose Texting1.MessageReceivedTexting1 the event-handler that is triggered when phone received a text set Texting1.PhoneNumber to Texting1 set the PhoneNumber property before sending value numberMy Definitions this is the phone number of the person who sent the text set Texting1.Message to Texting1 set the Message property before sending MessageText.TextMessageTextThis is the message the user has entered. Texting1.SendMessage Texting send the message

The blocks will look like this:

Storing the custom response TinyDB provides two blocks: StoreValue and GetValue. The former allows you to store a tagged piece of information, while the latter let's you retrieve one.

You'll need the following blocks to store the custom message: Block TypeDrawerPurpose SubmitResponseButton.ClickSubmitResponseButton user clicks this button to submit new response message TinyDB1.StoreValue TinyDB1 store the custom message in the phone's database text ("responseMessage")Text use this as the tag for the data MessageTextbox.TextMessageTextbox the response message entered by the user is here

Retrieving the saved response message Block TypeDrawerPurpose def variable ("response") Definitions A temporary variable to hold the retrieved data text (blank)TextInitial value for the variable can be anything Screen1.InitializeScreen1This is triggered when app begins set response toMy Definitionsyou'll set the variable to the value retrieved from db TinyDB1.GetValueTinyDB1get the stored response text from the database text ("responseMessage")Text plug into tag slot of GetValue, make sure text is same as was used in StoreValue above if testControlto ask if the retrieved value has some text > blockMathcheck if length of retrieved value is greater than (>) 0 length textTextcheck if length of retrieved value is greater than 0 global responseMy Definitionsthis variable holds the value retrieved from GetValue number (0)Mathto compare with length of response set MessageTextbox.Text toMessageTextboxif we retrieved something, place it in MessageTextbox global responseMy Definitionsthis variable holds the value retrieved from GetValue

Blocks look:

No Text While Driving, Final Program