BEGINNER APP INVENTOR

Similar documents
Student Hub Live interface guide transcript

The Slide Master and Sections for Organization: Inserting, Deleting, and Moving Around Slides and Sections

Lesson 2: Choosing Colors and Painting Chapter 1, Video 1: "Lesson 2 Introduction"

How To Add Falling Snow

Lesson 4: Develop and Launch an Engaging Website

MITOCW MITCMS_608S14_ses03_2

Easy Steps to My Best Bonus Offers by Sunny Suggs! Click here to join now!

Automate Your Social Media Marketing (Tutorial)

Klixx instructions. Hello here is your instruction manual for your Klixx box. low quality or not working, just choose a different one INDEX

Blend Photos Like a Hollywood Movie Poster

Add Rays Of Sunlight To A Photo With Photoshop

CHATS Meals On Wheels Online Ordering User Guide

PAC Listing Inventory

INTRODUCTION TO WEARABLES

DAZ Studio. Camera Control. Quick Tutorial

Phase 2: Testing & Validation: Forever Affiliate Content Strategy - Minisite & Authority Site

QUICKSTART COURSE - MODULE 7 PART 3

Klixx instructions. Hello here is your instruction manual for your Klixx box INDEX

LAYER MASKS LET YOU NON-DESTRUCTIVELY ERASE AWAY AREAS FROM ONE LAYER TO REVEAL THE LAYERS BELOW

Things I DON'T Like. Things I DO Like. Skill Quizzes. The Agenda

pla<orm-style game which you can later add your own levels, powers and characters to. Feel free to improve on my art

BEST PRACTICES COURSE WEEK 21 Creating and Customizing Library Parts PART 7 - Custom Doors and Windows

Why Affiliate Marketing Doesn t Work for You

BEST PRACTICES COURSE WEEK 14 PART 2 Advanced Mouse Constraints and the Control Box

MITOCW ocw lec11

Excel 2003: Discos. 1. Open Excel. 2. Create Choose a new worksheet and save the file to your area calling it: Disco.xls

Organizing and Customizing Content

MITOCW watch?v=ir6fuycni5a

Create and deploy a basic JHipster application to Heroku

1/31/2010 Google's Picture Perfect Picasa

SIDE ONE. I Am The Sun. Please assume I know what I'm doing And everything will be OK

1 Best Practices Course Week 12 Part 2 copyright 2012 by Eric Bobrow. BEST PRACTICES COURSE WEEK 12 PART 2 Program Planning Areas and Lists of Spaces

Talking to Kids about Jimi & Isaac Books

Getting Started with Osmo Words

MODULE 1 IMAGE TRACE AND BASIC MANIPULATION IN ADOBE ILLUSTRATOR. The Art and Business of Surface Pattern Design

Autodesk University Project Navigator to the Rescue in AutoCAD Architecture: Fix Standard Mismatches in a Project

Make an Altoids Flashlight.

Autodesk University Free Your Design Data

Go back to the stopped deck. Put your finger on it, holding it still, and press start. The deck should be running underneath the stopped record.

How Can I Deal With My Anger?

Easily Smooth And Soften Skin In A Photo With Photoshop

Excel 2016 Cell referencing and AutoFill

Contribute to CircuitPython with Git and GitHub

Speaking Notes for Grades 4 to 6 Presentation

Welcome to Weebly. Setting up Your Website. Write your username here:

Okay, okay... It probably won't be so hysterical too you, but I'll tell you anyway.

High Speed Motion Trail Effect With Photoshop

Creating Images Using Open Source Repositories and PowerPoint/Paint

Autodesk University Inventor HSM Turning - CNC Lathe Programming

2D Platform. Table of Contents

How to make a pattern for a simple shirt with Valentina / Seamly2D

Autodesk University See What You Want to See in Revit 2016

Writing Interactive Fiction With Adrift

It was late at night and Smartie the penguin was WIDE awake He was too excited to sleep because tomorrow was his birthday. He was really hoping to be

BEST PRACTICES COURSE WEEK 26 In-Office Project Management - Part 2 - Spell Checking and Text Submission

Open SimPe. It may take a bit to load, heck...it may take quite a while to load, but be patient, it will load.

Plant and Pest Diagnostic enetwork

Making Your World - the world building tutorial

IB Interview Guide: How to Walk Through Your Resume or CV as an Undergrad or Recent Grad

The Layer Blend Modes drop-down box in the top left corner of the Layers palette.

Doing More with Photoshop

Plus Your Business - Google Hangouts on Air Google Hangouts on Air

MITOCW R22. Dynamic Programming: Dance Dance Revolution

Lesson 4: Inserting and Modifying Clip Art and Photos

Learn about the RoboMind programming environment

7-1-The_Best_Practices_Course--Week_7--Part_1--Interactive_Legends_Part_1

BEST PRACTICES COURSE WEEK 21 Creating and Customizing Library Parts PART 5 - Importing 3D IFC and DWG Files to Create Library Parts

Environmental Stochasticity: Roc Flu Macro

UW_HELP_PODCAST_2.mp3

Lesson 1: Introducing Photoshop

Set Up Your Domain Here

Granny Square Crochet For Beginners. US Version. Shelley Husband. Published by Shelley Husband at Smashwords. Copyright 2015 Shelley Husband

Module All You Ever Need to Know About The Displace Filter

Orientation. Making a Mountain Brush

Introduction. So, let's get this moving forward, first things first, some things you will need to get up and running...

iphoto Getting Started Get to know iphoto and learn how to import and organize your photos, and create a photo slideshow and book.

Table of Contents. Creating Your First Project 4. Enhancing Your Slides 8. Adding Interactivity 12. Recording a Software Simulation 19

Create a CaFE Account (for those who do not have one) In order to submit entries for the FWS Annual Exhibition and/or the Online Show, you need to:

Sneak Peek at IvyLearn Page 2 of 20

1 of 14. Lesson 2 MORE TOOLS, POLYGONS, ROOF. Updated Sept. 15, By Jytte Christrup.

Tutorial Three: Categorising ideas using the SuperGrouper tool In Kidspiration there are two basic ways to organise ideas in Picture View: links and

Proven Performance Inventory

The Emperor's New Repository

Love Is The Answer Lyrics

Annex IV - Stencyl Tutorial

Photoshop Techniques Digital Enhancement

Autodesk University Advanced Topics Using the Sheet Set Manager in AutoCAD

How to make a pattern for a simple shirt with Seamly2D

Ep #23: Cheat Days. Hi! How's it goin'? Great? Good. Then let's jump right into today's topic. Cheat days.

Best Camera Settings For Outdoor Group Photos

Medieval Wars Alpha Fix - PSP

CLICK HERE TO SUBSCRIBE

MITOCW R9. Rolling Hashes, Amortized Analysis

Julie #4. Dr. Miller: Well, from your forms that you filled out, seems like you're doing better.

Create a CaFE Account (for those who do not have one) In order to submit entries for the FWS Annual Exhibition and/or the Online Show, you need to:

Roofing. ROOFING A Beginner Level Tutorial. By fw190a8, 7 July 2006

The lump sum amount that a series of future payments is worth now; used to calculate loan payments; also known as present value function Module 3

CLICK HERE TO SUBSCRIBE

Autodesk University Automating Plumbing Design in Revit

Episode #016. How to Use Video with Camtasia, FreeMind, PowerPoint, and YouTube to Make Money Online

Transcription:

Table of Contents 5 6 About this series Getting setup Creating a question Checking answers Multiple questions Wrapping up.....5.6

About this series These cards are going to introduce you to App Inventor. You're going to get the chance to: learn to build apps for Android phones and tablets build a quiz that keeps score as the player goes through it use any questions and answers you like, maybe about your favourite band, a sport you play, movies or a tv show you love. I'm going to do mine on dogs (I like dogs). You'll end up with something that looks like this (though you can play around with colours and adding images to brighten it up if you like!). If you want to follow along with me, you're welcome to, if not then wherever I have a dog themed question, you'll have to come up with your own question, the right answer, and some answers that sound right! If you're going to make your own quiz, have a think about that now and maybe brainstorm out some ideas with the other Ninjas in your Dojo about what kind of questions you should have.

About this series Once you've learned these techniques, you can apply them to create more than just a quiz! These same coding tools can be used to make a complete interactive story, or to build a calculator, or a whole bunch of other cool apps.

Getting setup Before you can do anything, you're going to need an account on the App Inventor website. Go to dojo.soy/appinv-start and then click on the "Create apps!" button at the top-right of the screen. The website will ask you to sign in with a Google account. If you don't have one, you'll need to create one or use your parent/guardian's account. Once you have signed in with a Google account, App Inventor will show you options to either setup an Android device (a phone or tablet) or an emulator (a fake, simulated, Android device) on your computer. You may need a mentor at your Dojo to help you with this next step! Depending on what you have personally, or available at your Dojo, you may need to install the emulator, setup your own device or a Dojo device, or do nothing at all (if the Dojo already has devices set up). If you need to do either kind of setup, click on the appropriate link and follow the App Inventor team's instructions. Once you've done that, come back to the Sushi Cards. 5 Right! Now you're all set to go! Time to create your first Android app! 6 Go back to App Inventor in your browser and click on the "Start new project" button, at the top left of the screen.

Getting setup 7 Call your project "MyQuizApp" and click "OK" 8 You'll see a screen like this one, and you're ready to get coding! 9 You can see that the App Inventor Designer view is broken into four key sections: Palette from which you pick the components you will use to build your app Viewer where you can see the app you are working on, rearrange and select components Components where you can see a list of the components in your app and their relationships to each other Properties where you can see and change the properties of the component you have selected at the moment There are other buttons and even another view, but this is all you'll be using right now. 5

Creating a question First, drag a Label component into the viewer to use for your question To make this Label have the question you want to ask in it first select it by clicking on it, either in the Viewer or the Components section. Now, in the Properties section, look for Text (you may have to scroll down) Change the text in the Text box to your question. I'm going to go with "What breed is the world's largest dog?" but you can pick any question you like. Maybe ask what the first song a band released was, or the score in the last World Cup final! Of course, what good is a question if the player doesn't have a chance to answer? Now it's time for you to add a few! Drag four Buttons from the Palette into the Viewer, then select each of them and change the Text in the Properties section so that one of them is the right answer and the other three are wrong answers. Be as tricky, or as funny, as you like with them! 6

Creating a question What you end up with should look a little like this: It's a Great Dane, by the way! Check him out: dojo.soy/big-dog 7

Checking answers Android apps are made of Screens. You've created your first question on one Screen and you're going to want to add more. You'll put them on new screens, but you need a way of keeping score between those screens. On this card, you'll be adding a TinyDB database to keep the score in, and some code to mark the right answer! First, in the Palette under Storage find the TinyDB component and drag it on to the Viewer. You won't see anything new there, but TinyDB should appear in the Components section. Now it's time to start putting together the code that will power your quiz! In the top right of the screen, click on the Blocks button to access the blocks view. Just like the previous Designer screen, this Blocks screen has sections: Blocks where you pick code blocks Viewer where you drag your code blocks to assemble them 8

Checking answers 5 There are lots of kinds of code blocks, but you're just going to need a few of them for now. In the Blocks section, click on whichever button matches the right answer to your question. For me, it was Button. Grab the When Button.Click do block and drag it onto the viewer. 6 Now click on TinyDB and choose the call TinyDB.StoreValue block. Drag it into the last block and then go to the Built-in blocks grab the pieces from Math and Text to make it look like this: 7 Finally, update the text value to "score" and the number to, like this: What you've done is stored the value (as in one point for a right answer) under the label "score" in the TinyDB database. You can pull it back out and change it on later screens. This way, you can keep score throughout the app, no matter how many questions you add! 9

Multiple questions Now you've got your first question and you're giving the player a point for a right answer. To add another question, you'll need to switch back to Designer view and click on the Add Screen... button in the top menu bar. Name your new screen whatever you like. I decided to be unimaginative and leave it as Screen for now! Your new screen will be blank. Add a Label with your next question and four Buttons with answers, just like on the last screen. Drag a TinyDB on too so you can get that score value you stored! I've asked what dogs are most closely related to (it's wolves!) but you pick whatever works for the quiz you're writing. In this case, my right answer was on Button but the code to change the score has to be a little cleverer here, since you've first got to get the value of score before you can add to it and store it. Also, since there will only be a value there if the player got the right answer on the last screen, you need to set a default value if there's nothing there. So add some code in the Blocks view that looks like this (remember to use the right Button for your right answer!): 0

Multiple questions 5 Great! But how do players get from Screen to Screen? You need to go back to Screen and give them a way! To switch screens click on the Screen button and pick Screen from the drop-down menu. 6 Now, from the Built-in blocks, take the open another screen screenname Control block and a Text block and add them below the score code, like this (if you've changed your screen name, you'll need to use that where I've used "Screen"): 7 Of course, that only works if Button is clicked. You need to add a simpler block for all the other buttons (the wrong answers) like this: 8 By creating more screens, and adding these same kinds of blocks that point to the next screen each time, you can create an endless number of questions, and keep score throughout! Go make one or two more question screens following the steps on this card.

Wrapping up Now that you're finished adding questions and connecting screens, you need a way to tell the player how they did! Create one more screen called "ScoreScreen" with nothing but a Label on it. You also need to drag the TinyDB on so you can access the score. Now switch to the Blocks view and, using blocks from the ScoreScreen, Label, Text, TinyDB and Math sections, put this together: You should now be able to go to the Connect menu and choose the emulator or other connection device you set up for testing your apps (you might need a mentor's help here!) and see how your code works right now!

Wrapping up 5 That's it! You've got a quiz that will keep score across all its pages, no matter how many you add, and will tell the player how they did at the end. Nice work! Check out the next card for a few ideas on what else you can do with what you know now! 6 Now you know how to build this quiz, what else can you do with this code? On this card, I'm going to give you a few ideas but you can always come up with something cooler. 7 What about an interactive story? You can use the same blocks you use to move from one screen to the next to move around screens based on users' decisions. You can create a story where, for example, you can decide to turn left or right at a fork in the road. If you map it out on paper first, you can create a complex branching story with loads of different characters, secrets, and endings! 8 You can build an app that gives information on different screens, connected with buttons, about anything you're interested in! You can try adding an Image component to the screen and uploading pictures too. I could build another dog-themed app, with pictures and information about different breeds!