Join Michael Lehman for an in-depth discussion in this video Programming the ColorSpotR logic using the Blocks Editor, part of Learning Simple Android Development Tools.
…Okay, we've built the color spotter UI, now let's go ahead…and create the logic for color spotter using the blocks editor.…So we click on Blocks, as you may remember from the review that we did,…we need to be able to count how many of the blocks are already tapped.…So, we're going to go ahead and create a variable, going to…create a global variable, we're going to call that variable Count.…And we're going to set that variable to the number 0.…So when the app starts the account variable gets set to 0.…Now as we saw before, every single one…of these color blocks does effectively the same thing.…
It checks to see whether or not its image is…the image with the spot in the middle and if it…is not it sets it's image to the image with…the spot in the middle and adds one to the count.…And if it is the image with the spot in the…middle, it sets it back to the solid image and subtracts…one from the count and then compares the count to six…and decides if it is six, that you win the game.…So what we're going to do is going to build…
- Understanding the elements of an Android app, such as controls, sensors, effectors, and storage
- Exploring MIT App Inventor 2
- Getting started with Basic4android
- Building simple apps
- Testing apps on Android emulators and devices
- Sharing apps
- Creating hybrid apps with Appy Pie, Make Me Droid, and AppMakr
Skill Level Beginner
1. Overview of Android Development
2. MIT App Inventor 2
4. Web-App-Creation Tools
Next steps1m 43s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.