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:
- 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.
- Text Color and Size Increase the Label's font size so that it's
more visible and change its color to something besides black.
- 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.
- 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:
- 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.
- 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:
- A screenshot of your app. Look for the Take Screenshot application
under the Accessories menu on your workstation.
- A link to the Hello Purr Tutorial (as a reference).
- This 'homework' is due by 5 PM today.