SlideShare a Scribd company logo
Photo by astanush - Creative Commons Attribution-NonCommercial-ShareAlike License https://www.flickr.com/photos/27965998@N00
MIT App Inventor 2:
http://ai2.appinventor.mit.edu/
JY Pathways: Program Android Apps with MIT App Inventor 2
JY Pathways: Program Android Apps with MIT App Inventor 2
JY Pathways: Program Android Apps with MIT App Inventor 2
Add components
from palette
Adjust properties of components
Drag and drop items into the blocks editor,
and snap blocks together
Now let’s create an app!
First, start a new project
Add a label to the screen
(a label item shows up in
the Components area)
Add a button to the screen
Select the Label1 component, and click on Rename.
Rename Label1 to lblMessage
and Button1 to btnEnter
With lblMessage selected,
Change BackgroundColor to Cyan
Change FontSize to 30
Change Height to 50 pixels
Change Width to Fill parent, and
clear ‘Text for Label 1’ under Text
With btnEnter selected,
change FontSize to 30
Change Height to 50 pixels
Change Width to Fill parent
Change Text to ‘Click here’
JY Pathways: Program Android Apps with MIT App Inventor 2
In the Blocks editor,
select btnEnter
Drag when
btnEnter.click to the
blank canvas
Select lblMessage,
and drag set lblMessage.Text
over to the canvas
Connect the
blocks together
Under the Built-in blocks,
select Text, and drag the empty string
“ ” block over to the canvas
Snap the blocks together,
and change the empty
string to “Hello world!”
Let’s test it out!
Download the MIT AI2 Companion on
your mobile phone
On the upper right-hand side,
click on Connect and AI Companion
Launch the MIT AI2 Companion
on your mobile phone,
and enter the QR Code to see
the project in action
No Android device? No problem!
Download the App Inventor Setup Package:
http://appinventor.mit.edu/explore/ai2/mac.h
tml
Click on Connect and
then Emulator
Let the Android Emulator
load for a few minutes
Click on the MIT AI2 Companion app on the phone
(you may need to connect again to load the project)
Viola! When the button is clicked,
‘Hello world!’ appears.
Save the project as an .apk file, and
open it up on your Android device
to launch the app
Congratulations! You’ve successfully
created an Android app.
Questions?
Thank you!
“Like” us on Facebook!:
www.bit.ly/jypathways
Follow us on Twitter: @jypathways
www.jypathways.org

More Related Content

PPTX
In design software evidence
PPTX
App inventor
PPTX
Building Apps for Good with MIT App Inventor
PDF
Presentation app inventor - LER Group
PPTX
Periodic Table of Agile Principles and Practices
DOC
Technical Writing Example
DOCX
How to Create a Folded Text Effect in Adobe Illustrator.docx
DOCX
Adobe Illustrator CS5 Part 2 : Vector Graphic Effects
In design software evidence
App inventor
Building Apps for Good with MIT App Inventor
Presentation app inventor - LER Group
Periodic Table of Agile Principles and Practices
Technical Writing Example
How to Create a Folded Text Effect in Adobe Illustrator.docx
Adobe Illustrator CS5 Part 2 : Vector Graphic Effects

Similar to JY Pathways: Program Android Apps with MIT App Inventor 2 (20)

PPTX
ch 3 of C# programming in advanced programming
PPT
visual programming GDI presentation powerpoint
PPT
Visual programming Chapter 3: GUI (Graphical User Interface)
PPTX
Lines, shapes, docker
PPTX
Drawing and Selecting Through Line
PPTX
Create New Android Layout
PPT
Taller app inventor english
PPT
Tallerappinventor english
DOCX
Microsoft Word Basics - part 1
PPT
Rational rose
PPTX
How to create watermark effect
PPTX
Computer Science.pptx
PPTX
Ms word
PPTX
Ms word
PPTX
Ms word
PPTX
Chapter 02
PPTX
Vp lecture 11 ararat
PDF
Guide to Fix Dropdown Button Not Switching Selected Item | Flutter
PPT
Power Point Project 5
ch 3 of C# programming in advanced programming
visual programming GDI presentation powerpoint
Visual programming Chapter 3: GUI (Graphical User Interface)
Lines, shapes, docker
Drawing and Selecting Through Line
Create New Android Layout
Taller app inventor english
Tallerappinventor english
Microsoft Word Basics - part 1
Rational rose
How to create watermark effect
Computer Science.pptx
Ms word
Ms word
Ms word
Chapter 02
Vp lecture 11 ararat
Guide to Fix Dropdown Button Not Switching Selected Item | Flutter
Power Point Project 5
Ad

Recently uploaded (20)

PDF
Complications of Minimal Access Surgery at WLH
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
Cell Types and Its function , kingdom of life
PDF
Classroom Observation Tools for Teachers
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
Cell Structure & Organelles in detailed.
Complications of Minimal Access Surgery at WLH
TR - Agricultural Crops Production NC III.pdf
VCE English Exam - Section C Student Revision Booklet
FourierSeries-QuestionsWithAnswers(Part-A).pdf
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
O7-L3 Supply Chain Operations - ICLT Program
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Pre independence Education in Inndia.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
human mycosis Human fungal infections are called human mycosis..pptx
Cell Types and Its function , kingdom of life
Classroom Observation Tools for Teachers
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
Cell Structure & Organelles in detailed.
Ad

JY Pathways: Program Android Apps with MIT App Inventor 2