CPSC 110-08: Computing on Mobile Phones
Spring 2012
No Text While Driving Tutorial

CS Principles

This activity addresses the idea that computing is a creative activity and focuses on the following learning objectives:

Preliminaries

This lesson assumes your phone has the ability to send and receive text messages. The phones for the CPSC-110 should all contain pre-paid SIM cards, which may or may not still have available minutes.

This tutorial is described in Chapter 4 of the App Inventor text.

This lesson introduces a number of new App Inventor components:

Testing the SIM Card

  1. Find your phone's phone number by going to Settings --> About Phone -->Status--> "My phone Number".

  2. Try to text your Android phone (from your own personal phone) and try using your Android phone to text your personal phone.

  3. To add money and/or re-activate the SIM card you can go to: http://prepaid-phones.t-mobile.com/prepaid-refill and select the "Fill up now" button. Once you add funds, the phone should be activated almost immediately. A restart is advisable if the account was deactivated.

  4. If your phone's SIM card is no longer active, try using Text Plus, an SMS over WiFI app. (See below.)

SMS Over WiFi

Text Plus is an free Android app that will let us write App Inventor texting apps without purchasing SIM cards for our phones. It sends text messages over a Wifi connection. Here's how to get texting working on your phones.

  1. Turn on the phone's WiFi nextwork and login to Trinair:

  2. Use the phone's built-in Market app to search for the Text Plus app and download the free version.

  3. Open the application and create an account, which will provide you with a phone number. This number is your phone's SMS incoming and outgoing number.

  4. Test the application by sending messages to and from your personal phone. You will need to maintain an internet connection for the program to work.

  5. When sending out an SMS message, the phone will give you a choice "Complete action using" either text plus or regular messages. Select textplus and check the "Use by default for this action" tick box below it to make it the default option.

No Texting Tutorial

The No Text While Driving App relieves the user of having to respond to text messages received while driving (or bicycling, running, etc.). It allows the user to create an automatic reponse and then sends that message to the sender whenever a message is received.

Hands-On

With an active SIM card on your phones, follow along with the tutorial. By the end of class, you should have a version of this app working on your phones.