Practice and reinforce the concepts from Lesson 3
Time needed: 30-35 minutes
What you'll do: Build an amazing Surprise App that will wow your friends! You'll create an app with hidden surprises - tap a button and watch the magic happen with changing images and fun sound effects! :emoji::emoji:
:white_check_mark: Have MIT App Inventor open in your browser
:white_check_mark: Prepare 2 fun images (one normal, one surprise!)
:white_check_mark: Find a cool sound effect for your surprise
:white_check_mark: Think about what surprise you want to create
:white_check_mark: Get ready to amaze people with your app!
Follow along with this awesome tutorial:
Sample UI | Components Needed |
---|---|
![]() |
Layout Components: • Vertical Arrangement • Horizontal Arrangement Visible Components: • Image • Label • Buttons Non-visible Components: • Sound |
Create Your Project
Arrange Components
Configure Buttons
Set Up Content
Prepare Surprise Element
When Surprise Button is Clicked:
Change the Image
Add Sound Effect
When Back Button is Clicked:
Reset the Image
Stop the Sound
After completing this tutorial, you will understand:
Make your Surprise App even more amazing:
Before showing it to friends, make sure:
:white_check_mark: The surprise button changes the image
:white_check_mark: The sound plays when you tap surprise
:white_check_mark: The back button returns to the original image
:white_check_mark: The sound stops when you tap back
:white_check_mark: Everything looks good on your phone screen
:bulb: Tip
Test your app multiple times! Sometimes bugs only appear after using the app several times. Real app developers test everything thoroughly!
You just learned about:
Awesome work creating your Surprise App! :tada:
When you've created an amazing Surprise App, share it with your teacher and classmates!