App Inventor Lab 1
App Inventor Lab 1
App Inventor Lab 1
Mobile App Development & Business Process
Chong Oh IS4410
OBJECTIVES
Chong Oh IS4410
LAB REQUIREMENTS
A Google account
This PDF lab lecture
Lab files from canvas (containing boo.jpg, kitty.wav
and mike.wav)
[EXTRA CREDIT] An Android device/phone for
testing the app
The will to try and not CRY…
Chong Oh IS4410
STEPS
Chong Oh IS4410
WHAT IS APP INVENTOR?
Chong Oh IS4410
LAYOUT OF APP INVENTOR
Chong Oh IS4410
STEP 1: DESIGN BUSINESS PROCESS
In a Word doc, design a business
process for the flow of the ‘BOO’ app.
Refer to the textbook on how to do this.
1. User clicks on ‘BOO’ button in main panel.
Boo image appears.
2. User clicks on the image of ‘Boo’ (which is
a button) and her voice will be heard.
3. One of 2 different sound files will randomly
play in response to the click.
Chong Oh IS4410
STEP 2
Chong Oh IS4410
The Designer View appears
Chong Oh IS4410
STEP 3 (MAIN PANEL WITH ONE BUTTON)
Chong Oh IS4410
STEP 4 (MAIN PANEL WITH ONE BUTTON)
Chong Oh IS4410
STEP 5 (MAIN PANEL WITH ONE BUTTON)
Chong Oh IS4410
STEP 5.1 (MAIN PANEL BLOCKS EDITOR)
Chong Oh IS4410
STEP 5.2 (MAIN PANEL BLOCKS EDITOR)
Chong Oh IS4410
STEP 6 (BOO BUTTON)
Chong Oh IS4410
BOO APP
Chong Oh IS4410
STEP 7.1 – CODING RANDOM PLAYBACK
Chong Oh IS4410
STEP 7.2 – CODING RANDOM PLAYBACK
Chong Oh IS4410
STEP 7.3 – CODING AUDIO PLAYBACK
Chong Oh IS4410
STEP 8: TESTING (OPTIONAL: EXTRA CREDIT)
There are two ways to test your code:
• AI2 App on Android devices (recommended, download free from
Google Play on any Android device).
• Emulator on your computer (Not recommended).
For AI2 (Make sure you are in Screen1):
• Click on Connect -> AI Companion. The text code and QR code for
your Android phone should appear.
• Start your AI2 app on your android device. Scan the QR code or put
in the text code. The app should appear on your device.
• Click on the ‘Boo’ Button. The picture of Boo appears.
• Tap Boo a few times and see what she says.
Chong Oh IS4410
Chong Oh IS4410
STEP 8 CONTINUED (NOT RECOMMENDED)
For emulator:
• Start your aiStarter (this takes 2-3 minutes)
• Click on Connect -> Emulator
• When ready, the ‘Boo’ app will be seen.
• Tap Boo a few times and see what happens.
Chong Oh IS4410
CONGRATS!
Chong Oh IS4410
SUBMISSION
Create a business process in a Word doc.
Take screenshots/pictures of ‘Designer’ viewer and ‘Blocks’
viewer
Add screenshots/pictures to the Word doc.
(EXTRA CREDIT) Take a video of your app running on a
phone or emulator.
Upload word doc and video to canvas.
Do not share your files with other students. (This is cheating)
Ask the TA if you need any help
Chong Oh IS4410
END
Chong Oh IS4410