CPSC 110-08: Computing on Mobile Phones
Spring 2012

Extending Hello Purr

Customizing and Extending Hello Purr

Log in to App Inventor.

Now that you have worked through the Hello Purr Tutorial, let's add one or more of the following features to our app.

Emulator Enhancements: If you're running your app on the emulator, try some of these enhancements:

  1. Pet Me Label Instead of having the Button's text say "Pet me!", add a Label to your app, placed above or below the button, and have it say "Pet me!". Change the Label's width, so it fills the whole screen horizontally.

  2. Text Color and Size Increase the Label's font size so that it's more visible and change its color to something besides black.

  3. Talking Cat Instead of meowing, have the cat say "Hello world" by using a TextToSpeech componenet. For this task, you'll have to grab a text block from the Built-in Text palette in Blocks Editor.

  4. Change the Image or Sound Find and download your own image (png) or sound (wav) file.

Phone Enhancements: If you have an Android phone and you're set up to use it, you can also try the following enhancements:

  1. Purring Add a Sound component to your app and make it vibrate (purr) for 500 milliseconds when the button is clicked. For this task you'll have to grab a number block from the Built-in Math palette in the Blocks Editor.

  2. Accelerometer Add an Accelerometer component to your app and have the Kitty meow when you shake the phone.

Adding a Hello Purr Page to Our Portfolios

Create a page titled "Hello Purr App" under your Homework category and use to describe what additional features you added to your app.

Your description should contain the following elements: