SlideShare a Scribd company logo
1 of 17
Download to read offline
By Warren de León Ofalla, Roger Soriano Tasso,
Alexis Toledo Ruiz & César Benites Rojas
INDEX
INDEX...................................................................................................................................................................................1
INTRODUCTION .................................................................................................................................................................2
TALK TO ME .......................................................................................................................................................................4
BALL BOUNCE...................................................................................................................................................................7
SMART EMPLOYABILITY PROGRAM QUIZ ..................................................................................................................9
INTRODUCTION
1. First of all, you have to access to the main page (http://appinventor.mit.edu)
2. Then click on Create to start.
3. The second step is to log on your own Google Account, you can use a school account.
4. Once you are logged on, you have to create a New Project and you will be able to start your own
application.
5. Install the emulator. http://appinventor.mit.edu/explore/ai2/windows.html
6. To test your app, with the aiStarter opened, click on connect and then click on Emulator.
7. For connecting your phone with your computer, you have to click on Connect and then on All
companion.
8. The next step is to download the phone app and scan the QR code that will appear on your screen.
Talk To Me
1. Once you are logged on and you have created a new project, you just have to start developing your
app
2. In this app, when you click on “Press me” button the smartphone says something.
3. In Design part you can make the structure off your app. Drag a Vertical Arrangement in to the display
view.
4. Also you need to drag a button inside the vertical arrangement. You can change the text inside the
button in the properties panel.
5. Select text to speech and drag it into the viewer display.
6. From the other hand, you have to specify what you want this design to do in Block part, such as
reading text or what you want to do when you click on the “Press Me” button. Use the same pieces of
puzzle as we used on the image down below.
7. This app is done, you can use the emulator or your smartphone to see the results.
8. Now we are going to add some new functions. In the design view add select accelerometer sensor
and drag it into the viewer display.
9. The code is simple, just follow the image down below.
10. Now try it on your smartphone. This feature doesn’t work on the emulator.
Ball Bounce
1. This app is about animation in App Inventor, we are going to make a Ball bounce around on the
screen, so we will need to add a Canvas.
2. Go to Drawning and Animation and drag out a Canvas component and drop it onto the viewer.
3. When you are using a Canvas, you have to turn off the
"Scrollable" setting so that the screen does not scroll. This will
allow you to make the Canvas to fill up the whole screen.
4. Now we have to change the Height and Width of the Canvas to Fill
Parent, to do this select the Canvas component and then at the
bottom, set the “Height” property to "Fill Parent". Do the same with
the “Width” property.
5. What we need now is a “Ball”. This can be found in “Drawing and Animation”. Drag out a Ball
component and drop it onto the Canvas. Also change the radius.
6. Now you need to specify what make your design work, go to the blocks view. And use the same
blocks as the image.
7. If you try the app now on your smartphone or on the emulator, you will see that when you hit the ball,
and this one gets an edge of you screen, it doesn’t bounce. To fix this, use the code below.
Smart Employability Program Quiz
1. This app consists on a game, that ask you questions and you have to answer it right. You need to be
two players for playing this game, because you both have to race with the other for earning points.
2. First, using AppInventor, you have to prepare the designing part, as you can see in the pictures
below.
3. Select the screen and disable the scroll. Put a vertical layout inside de screen. Select a label and
drag it into the vertical layout, we wrote inside this label “Welcome to the SEP Quiz”. Underneath the
label put two horizontal arrangements. Inside this two, there’s a label and a textbox. Below the
horizontals arrangements there’s a “Start” button. Finally, select and drag a TinyDB to the screen.
TIP: Rename all the objects with the
same name we used. That, will help you
with the code part.
4. Go to the blocks editor. Select and drag two global
variables name and then, use the text piece and leave it
blank.
5. Now we are going to create the questions and answers. Create a global variable called questions with
a list inside and do the same for answers. Then you just have to fill the list with questions and
answers. We transform the answers text into uppercase because we don’t want to make the game
case sensitive.
6. The app saves this questions and the names of the players when the user clicks on the “start” button.
What we are going to do first is to save the names of the players into our global variables.
7. It’s time to save all the information inside our TinyDB. Use the same blocks as image down below
TIP: Click on the blue icon to add more ítems on the list.
8. At the end, your blocks (code) should look like this:
9. We added a block to open the next screen.
10. It’s time to design the next screen. Add a new screen, and use the same components that we used
to build the same user interface and remember to change the names.
11. We have to make that the app populate the names of player and also the question, when the game
starts. To do that go to the blocks editor and use the same blocks we used.
12. Now, if you try your app on you smartphone or emulator you will see that all appears the way that
should be. But, if you press “SEND” doesn’t work and doesn’t change the player. Use the same
blocks we did to correct that.
When button “SEND” is clicked: if the answer the player wrote is equal to the answer on the list then we
show a message dialog also we sum 1 point depending on the player and we change the number
question. Else if the player didn’t write the correct answer we show a message dialog saying the player
failed.
13. Ok, we are cheking if the answer is correct, but what about changing the player? First right click on
the first if and select collapse, which will collapse all the blocks. Now add the same blocks we did.
14. Now it’s time to change the labels points, collapse
again this if you just made and add the blocks.
15. Let’s change the turn label and the question:
16. As you can see we set the label text for the first player, just copy and paste these blocks inside the
else if. And change the name player 1 for player 2
17. Now our app changes the turn player and also changes the question. But what happens when the
user answered all the questions? The app should show who won the game. There’s three
possibilities: The player1 won, the player2 won or player1 & player2 draw.
18. The entire code should be like this:
Youtube video tutorial:
http://www.youtube.com/watch?v=0koOsdX_M1E&feature=share&list=PLJFDqPMv012bDAcK8ew
2HJSl9BaNYxKkc

More Related Content

What's hot (7)

Coupons Tutorial
Coupons TutorialCoupons Tutorial
Coupons Tutorial
 
SugarCRM Survey Rocket Plugin - User Guide
SugarCRM Survey Rocket Plugin - User GuideSugarCRM Survey Rocket Plugin - User Guide
SugarCRM Survey Rocket Plugin - User Guide
 
Loyalty Stamp Tutorial
Loyalty Stamp TutorialLoyalty Stamp Tutorial
Loyalty Stamp Tutorial
 
QR Scanner Tutorial
QR Scanner TutorialQR Scanner Tutorial
QR Scanner Tutorial
 
Sigil 0.2.0-manual
Sigil 0.2.0-manualSigil 0.2.0-manual
Sigil 0.2.0-manual
 
89 identify the parts of a window desktop and common desktop icons
89 identify the parts of a window desktop and common desktop icons89 identify the parts of a window desktop and common desktop icons
89 identify the parts of a window desktop and common desktop icons
 
How creating an app game!
How creating an app game!How creating an app game!
How creating an app game!
 

Viewers also liked

How IT skills_can_help_you_find_employment
How IT skills_can_help_you_find_employmentHow IT skills_can_help_you_find_employment
How IT skills_can_help_you_find_employment
Charo Cuart
 
New Media and Learning – A Key to Employability
New Media and Learning  – A Key to EmployabilityNew Media and Learning  – A Key to Employability
New Media and Learning – A Key to Employability
Charo Cuart
 
How adults use multimedia in Grabica, Poland – survey 2013
How adults use multimedia in Grabica, Poland – survey 2013How adults use multimedia in Grabica, Poland – survey 2013
How adults use multimedia in Grabica, Poland – survey 2013
Charo Cuart
 
Pre- selección de alumnos de primera movilidad K1 Con Interpoint en Malta
 Pre-  selección de alumnos de  primera movilidad K1 Con Interpoint en Malta Pre-  selección de alumnos de  primera movilidad K1 Con Interpoint en Malta
Pre- selección de alumnos de primera movilidad K1 Con Interpoint en Malta
Charo Cuart
 

Viewers also liked (12)

How IT skills_can_help_you_find_employment
How IT skills_can_help_you_find_employmentHow IT skills_can_help_you_find_employment
How IT skills_can_help_you_find_employment
 
Minutes last meeting in POland may2014
Minutes last meeting in POland may2014 Minutes last meeting in POland may2014
Minutes last meeting in POland may2014
 
Island business article
Island business articleIsland business article
Island business article
 
New Media and Learning – A Key to Employability
New Media and Learning  – A Key to EmployabilityNew Media and Learning  – A Key to Employability
New Media and Learning – A Key to Employability
 
How adults use multimedia in Grabica, Poland – survey 2013
How adults use multimedia in Grabica, Poland – survey 2013How adults use multimedia in Grabica, Poland – survey 2013
How adults use multimedia in Grabica, Poland – survey 2013
 
Copy of evaluation of barcelona training 24 25 01 13
Copy of evaluation of barcelona training 24 25 01 13Copy of evaluation of barcelona training 24 25 01 13
Copy of evaluation of barcelona training 24 25 01 13
 
Presentation about the use of Smart Tecnologies
Presentation about the use of Smart TecnologiesPresentation about the use of Smart Tecnologies
Presentation about the use of Smart Tecnologies
 
Pre- selección de alumnos de primera movilidad K1 Con Interpoint en Malta
 Pre-  selección de alumnos de  primera movilidad K1 Con Interpoint en Malta Pre-  selección de alumnos de  primera movilidad K1 Con Interpoint en Malta
Pre- selección de alumnos de primera movilidad K1 Con Interpoint en Malta
 
IT Governance Presentation
IT Governance PresentationIT Governance Presentation
IT Governance Presentation
 
IT Governance Vs IT Management Presentation V0.1
IT Governance Vs IT Management   Presentation V0.1IT Governance Vs IT Management   Presentation V0.1
IT Governance Vs IT Management Presentation V0.1
 
IT governance by Erik Guldentops
IT governance by Erik Guldentops  IT governance by Erik Guldentops
IT governance by Erik Guldentops
 
IT Governance Made Easy
IT Governance Made EasyIT Governance Made Easy
IT Governance Made Easy
 

Similar to How to create_your_own_android_app

Idiots guide-to-photoshop
Idiots guide-to-photoshopIdiots guide-to-photoshop
Idiots guide-to-photoshop
Marcela Conroy
 
Noughts and Crosses Design Information
Noughts and Crosses Design InformationNoughts and Crosses Design Information
Noughts and Crosses Design Information
Christopher Orchard
 
Run and jump tutorial (part 1) actors
Run and jump tutorial (part 1)   actorsRun and jump tutorial (part 1)   actors
Run and jump tutorial (part 1) actors
Muhd Basheer
 
Calculator 1
Calculator 1Calculator 1
Calculator 1
livecode
 
Android tutorials7 calculator
Android tutorials7 calculatorAndroid tutorials7 calculator
Android tutorials7 calculator
Vlad Kolesnyk
 
Iphone ipad-application
Iphone ipad-applicationIphone ipad-application
Iphone ipad-application
Guojun Li
 
UE4BlueprintLadderVolumeTutorial
UE4BlueprintLadderVolumeTutorialUE4BlueprintLadderVolumeTutorial
UE4BlueprintLadderVolumeTutorial
Justin Plowman
 
How tomakea gameinunity3d
How tomakea gameinunity3dHow tomakea gameinunity3d
How tomakea gameinunity3d
Dao Tung
 
Scratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek panditScratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek pandit
BibekPandit2
 

Similar to How to create_your_own_android_app (20)

Idiots guide-to-photoshop
Idiots guide-to-photoshopIdiots guide-to-photoshop
Idiots guide-to-photoshop
 
Noughts and Crosses Design Information
Noughts and Crosses Design InformationNoughts and Crosses Design Information
Noughts and Crosses Design Information
 
Unity 101
Unity 101Unity 101
Unity 101
 
Run and jump tutorial (part 1) actors
Run and jump tutorial (part 1)   actorsRun and jump tutorial (part 1)   actors
Run and jump tutorial (part 1) actors
 
Tat learning applications en
Tat learning applications enTat learning applications en
Tat learning applications en
 
Calculator 1
Calculator 1Calculator 1
Calculator 1
 
IOS Swift language 1st Tutorial
IOS Swift language 1st TutorialIOS Swift language 1st Tutorial
IOS Swift language 1st Tutorial
 
Android tutorials7 calculator
Android tutorials7 calculatorAndroid tutorials7 calculator
Android tutorials7 calculator
 
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
Introduction to Game Programming: Using C# and Unity 3D - Chapter 2 (Preview)
 
A8-M Operation instruction-1.0.pdf
A8-M Operation instruction-1.0.pdfA8-M Operation instruction-1.0.pdf
A8-M Operation instruction-1.0.pdf
 
Iphone ipad-application
Iphone ipad-applicationIphone ipad-application
Iphone ipad-application
 
UE4BlueprintLadderVolumeTutorial
UE4BlueprintLadderVolumeTutorialUE4BlueprintLadderVolumeTutorial
UE4BlueprintLadderVolumeTutorial
 
PICS QUIZ - INTEGRATION
PICS QUIZ - INTEGRATIONPICS QUIZ - INTEGRATION
PICS QUIZ - INTEGRATION
 
themes-how-do-i - Transcript.pdf
themes-how-do-i - Transcript.pdfthemes-how-do-i - Transcript.pdf
themes-how-do-i - Transcript.pdf
 
Glow_rapport
Glow_rapportGlow_rapport
Glow_rapport
 
How tomakea gameinunity3d
How tomakea gameinunity3dHow tomakea gameinunity3d
How tomakea gameinunity3d
 
App Inventor || Face emotion || Data saver || B.Sc. student task
App Inventor || Face emotion || Data saver || B.Sc. student taskApp Inventor || Face emotion || Data saver || B.Sc. student task
App Inventor || Face emotion || Data saver || B.Sc. student task
 
Youth-Led Tech Curriculum Day 21
Youth-Led Tech Curriculum Day 21Youth-Led Tech Curriculum Day 21
Youth-Led Tech Curriculum Day 21
 
Most asked JAVA Interview Questions & Answers.
Most asked JAVA Interview Questions & Answers.Most asked JAVA Interview Questions & Answers.
Most asked JAVA Interview Questions & Answers.
 
Scratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek panditScratch for kids syllabus for 5 hours by bibek pandit
Scratch for kids syllabus for 5 hours by bibek pandit
 

More from Charo Cuart

More from Charo Cuart (20)

EMWOFA- workbook - Spanish - Español
EMWOFA- workbook - Spanish - Español EMWOFA- workbook - Spanish - Español
EMWOFA- workbook - Spanish - Español
 
History lt
History ltHistory lt
History lt
 
SIAULIU "ROMUVOS" GIMNAZIJAPPt on History EN / Lithuanian to become an app
SIAULIU "ROMUVOS" GIMNAZIJAPPt on History EN / Lithuanian to become an appSIAULIU "ROMUVOS" GIMNAZIJAPPt on History EN / Lithuanian to become an app
SIAULIU "ROMUVOS" GIMNAZIJAPPt on History EN / Lithuanian to become an app
 
Newsletter Euapps4 us training meeting in Turkey
Newsletter  Euapps4 us training meeting in Turkey Newsletter  Euapps4 us training meeting in Turkey
Newsletter Euapps4 us training meeting in Turkey
 
Newsletter e uapps4us barcelona
Newsletter e uapps4us barcelonaNewsletter e uapps4us barcelona
Newsletter e uapps4us barcelona
 
Tema 7
Tema 7Tema 7
Tema 7
 
Tema6 potx
Tema6 potxTema6 potx
Tema6 potx
 
Tema5 potx
Tema5 potxTema5 potx
Tema5 potx
 
Tema4 potx
Tema4 potxTema4 potx
Tema4 potx
 
Tema3 potx
Tema3 potxTema3 potx
Tema3 potx
 
Tema 2 apps
Tema 2 apps Tema 2 apps
Tema 2 apps
 
Tema 1 crea tu app educativa
Tema 1 crea tu app educativa Tema 1 crea tu app educativa
Tema 1 crea tu app educativa
 
Newsletter 2-word
Newsletter 2-wordNewsletter 2-word
Newsletter 2-word
 
Dissemination event - Euapps4us Lithuania
Dissemination event - Euapps4us Lithuania Dissemination event - Euapps4us Lithuania
Dissemination event - Euapps4us Lithuania
 
Modal Verbs, Past Simple,Past Continuous, Comparatives in Business English eu...
Modal Verbs, Past Simple,Past Continuous, Comparatives in Business English eu...Modal Verbs, Past Simple,Past Continuous, Comparatives in Business English eu...
Modal Verbs, Past Simple,Past Continuous, Comparatives in Business English eu...
 
El agua y el suelo : ppt that will be an app- Stucom
El agua y el suelo : ppt that will be an app- Stucom El agua y el suelo : ppt that will be an app- Stucom
El agua y el suelo : ppt that will be an app- Stucom
 
The water and the ground. ppt to become an app. Stucom
The water and the ground. ppt to become an app. Stucom The water and the ground. ppt to become an app. Stucom
The water and the ground. ppt to become an app. Stucom
 
Revolución Industrial : ppt que será un app - Stucom
Revolución Industrial : ppt que será un app - Stucom Revolución Industrial : ppt que será un app - Stucom
Revolución Industrial : ppt que será un app - Stucom
 
Pdf version of euapps4 us.pdf industrial revolution
Pdf version of euapps4 us.pdf industrial revolutionPdf version of euapps4 us.pdf industrial revolution
Pdf version of euapps4 us.pdf industrial revolution
 
Report on questionnaire to teachers in Uk, Spain, Germany and Poland about th...
Report on questionnaire to teachers in Uk, Spain, Germany and Poland about th...Report on questionnaire to teachers in Uk, Spain, Germany and Poland about th...
Report on questionnaire to teachers in Uk, Spain, Germany and Poland about th...
 

Recently uploaded

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Krashi Coaching
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Recently uploaded (20)

Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 

How to create_your_own_android_app

  • 1. By Warren de León Ofalla, Roger Soriano Tasso, Alexis Toledo Ruiz & César Benites Rojas
  • 2. INDEX INDEX...................................................................................................................................................................................1 INTRODUCTION .................................................................................................................................................................2 TALK TO ME .......................................................................................................................................................................4 BALL BOUNCE...................................................................................................................................................................7 SMART EMPLOYABILITY PROGRAM QUIZ ..................................................................................................................9
  • 3. INTRODUCTION 1. First of all, you have to access to the main page (http://appinventor.mit.edu) 2. Then click on Create to start. 3. The second step is to log on your own Google Account, you can use a school account. 4. Once you are logged on, you have to create a New Project and you will be able to start your own application. 5. Install the emulator. http://appinventor.mit.edu/explore/ai2/windows.html 6. To test your app, with the aiStarter opened, click on connect and then click on Emulator.
  • 4. 7. For connecting your phone with your computer, you have to click on Connect and then on All companion. 8. The next step is to download the phone app and scan the QR code that will appear on your screen.
  • 5. Talk To Me 1. Once you are logged on and you have created a new project, you just have to start developing your app 2. In this app, when you click on “Press me” button the smartphone says something. 3. In Design part you can make the structure off your app. Drag a Vertical Arrangement in to the display view. 4. Also you need to drag a button inside the vertical arrangement. You can change the text inside the button in the properties panel.
  • 6. 5. Select text to speech and drag it into the viewer display. 6. From the other hand, you have to specify what you want this design to do in Block part, such as reading text or what you want to do when you click on the “Press Me” button. Use the same pieces of puzzle as we used on the image down below. 7. This app is done, you can use the emulator or your smartphone to see the results. 8. Now we are going to add some new functions. In the design view add select accelerometer sensor and drag it into the viewer display.
  • 7. 9. The code is simple, just follow the image down below. 10. Now try it on your smartphone. This feature doesn’t work on the emulator.
  • 8. Ball Bounce 1. This app is about animation in App Inventor, we are going to make a Ball bounce around on the screen, so we will need to add a Canvas. 2. Go to Drawning and Animation and drag out a Canvas component and drop it onto the viewer. 3. When you are using a Canvas, you have to turn off the "Scrollable" setting so that the screen does not scroll. This will allow you to make the Canvas to fill up the whole screen. 4. Now we have to change the Height and Width of the Canvas to Fill Parent, to do this select the Canvas component and then at the bottom, set the “Height” property to "Fill Parent". Do the same with the “Width” property.
  • 9. 5. What we need now is a “Ball”. This can be found in “Drawing and Animation”. Drag out a Ball component and drop it onto the Canvas. Also change the radius. 6. Now you need to specify what make your design work, go to the blocks view. And use the same blocks as the image. 7. If you try the app now on your smartphone or on the emulator, you will see that when you hit the ball, and this one gets an edge of you screen, it doesn’t bounce. To fix this, use the code below.
  • 10. Smart Employability Program Quiz 1. This app consists on a game, that ask you questions and you have to answer it right. You need to be two players for playing this game, because you both have to race with the other for earning points. 2. First, using AppInventor, you have to prepare the designing part, as you can see in the pictures below. 3. Select the screen and disable the scroll. Put a vertical layout inside de screen. Select a label and drag it into the vertical layout, we wrote inside this label “Welcome to the SEP Quiz”. Underneath the label put two horizontal arrangements. Inside this two, there’s a label and a textbox. Below the horizontals arrangements there’s a “Start” button. Finally, select and drag a TinyDB to the screen. TIP: Rename all the objects with the same name we used. That, will help you with the code part.
  • 11. 4. Go to the blocks editor. Select and drag two global variables name and then, use the text piece and leave it blank. 5. Now we are going to create the questions and answers. Create a global variable called questions with a list inside and do the same for answers. Then you just have to fill the list with questions and answers. We transform the answers text into uppercase because we don’t want to make the game case sensitive. 6. The app saves this questions and the names of the players when the user clicks on the “start” button. What we are going to do first is to save the names of the players into our global variables. 7. It’s time to save all the information inside our TinyDB. Use the same blocks as image down below TIP: Click on the blue icon to add more ítems on the list.
  • 12. 8. At the end, your blocks (code) should look like this: 9. We added a block to open the next screen.
  • 13. 10. It’s time to design the next screen. Add a new screen, and use the same components that we used to build the same user interface and remember to change the names. 11. We have to make that the app populate the names of player and also the question, when the game starts. To do that go to the blocks editor and use the same blocks we used.
  • 14. 12. Now, if you try your app on you smartphone or emulator you will see that all appears the way that should be. But, if you press “SEND” doesn’t work and doesn’t change the player. Use the same blocks we did to correct that. When button “SEND” is clicked: if the answer the player wrote is equal to the answer on the list then we show a message dialog also we sum 1 point depending on the player and we change the number question. Else if the player didn’t write the correct answer we show a message dialog saying the player failed. 13. Ok, we are cheking if the answer is correct, but what about changing the player? First right click on the first if and select collapse, which will collapse all the blocks. Now add the same blocks we did. 14. Now it’s time to change the labels points, collapse again this if you just made and add the blocks.
  • 15. 15. Let’s change the turn label and the question: 16. As you can see we set the label text for the first player, just copy and paste these blocks inside the else if. And change the name player 1 for player 2
  • 16. 17. Now our app changes the turn player and also changes the question. But what happens when the user answered all the questions? The app should show who won the game. There’s three possibilities: The player1 won, the player2 won or player1 & player2 draw.
  • 17. 18. The entire code should be like this: Youtube video tutorial: http://www.youtube.com/watch?v=0koOsdX_M1E&feature=share&list=PLJFDqPMv012bDAcK8ew 2HJSl9BaNYxKkc