SlideShare a Scribd company logo
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Android Developer Fundamentals V2
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Your first
Android app 1
1
Build your first
app
Lesson 1
1
Android Developer Fundamentals V2
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
1.1 Your first Android app
2
Android Developer Fundamentals V2
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Create your first
Android app
Contents
● Android Studio
● Creating "Hello World" app in Android Studio
● Basic app development workflow with Android Studio
● Running apps on virtual and physical devices
3
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Prerequisites
● Java Programming Language
● Object-oriented programming
● XML - properties / attributes
● Using an IDE for development and debugging
4
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Android Studio
5
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
What is Android Studio?
6
● Android integrated development environment (IDE)
● Project and Activity templates
● Layout editor
● Testing tools
● Gradle-based build
● Log console and debugger
● Emulators
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Android Studio interface
7
1. Toolbar
2. Navigation bar
3. Project pane
4. Editor
5. Tabs for other
panes
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Installation Overview
● Mac, Windows, or Linux
● Download and install Android Studio from
https://developer.android.com/studio/
● See 1.1 P: Android Studio and Hello World
8
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Creating your
first Android app
9
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Start Android Studio
10
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Create a project inside Android Studio
11
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Name your app
12
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Pick activity template
13
Choose templates for
common activities,
such as maps or
navigation drawers.
Pick Empty Activity
or Basic Activity for
simple and custom
activities.
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Name your activity
14
● Good practice:
○ Name main activity
MainActivity
○ Name layout
activity_main
● Use AppCompat
● Generating layout
file is convenient
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Project folders (imp topic)
15
1. manifests—Android Manifest file -
description of app read by the
Android runtime
2. java—Java source code packages
3. res—Resources (XML) - layout,
strings, images, dimensions,
colors...
4. build.gradle—Gradle build files
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Gradle build system
● Modern build subsystem in Android Studio
● Three build.gradle:
○ project
○ module
○ settings
● Typically not necessary to know low-level Gradle details
● Learn more about gradle at https://gradle.org/
16
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Run your app
17
17
1. Run
2. Select virtual
or physical
device
3. OK
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Create a virtual device
18
Use emulators to test app on different versions of Android and form factors.
Tools > Android > AVD Manager or:
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Configure virtual device
19
1. Choose hardware
2. Select Android version
3. Finalize
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Run on a virtual device
20
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Run on a physical device
21
1. Turn on Developer Options:
a. Settings > About phone
b. Tap Build number seven times
2. Turn on USB Debugging
a. Settings > Developer Options > USB Debugging
3. Connect phone to computer with cable
Windows/Linux additional setup:
● Using Hardware Devices
Windows drivers:
● OEM USB Drivers
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Get feedback as your app runs
1. Emulator
running the
app
2. Run pane
3. Run tab to
open or close
the Run pane
22
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Adding logging to your app
● As the app runs, the Logcat pane shows information
● Add logging statements to your app that will show up in the
Logcat pane
● Set filters in Logcat pane to see what's important to you
● Search using tags
23
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
The Logcat pane
1. Logcat tab to
show Logcat
pane
2. Log level
menu
24
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Logging statement
import android.util.Log;
// Use class name as tag
private static final String TAG =
MainActivity.class.getSimpleName();
// Show message in Android Monitor, logcat pane
// Log.<log-level>(TAG, "Message");
Log.d(TAG, “Creating the URI…”);
25
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Learn more
● Meet Android Studio
● Official Android documentation at developer.android.com
● Create and Manage Virtual Devices
● Supporting Different Platform Versions
● Supporting Multiple Screens
26
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
Learn even more
● Gradle Wikipedia page
● Google Java Programming Language style guide
● Find answers at Stackoverflow.com
27
Android Developer Fundamentals V2
Your first
Android app
This work is licensed under a Creative
Commons Attribution 4.0 International
License.
What's Next?
28
● Concept Chapter: 1.1 Your first Android app
● Practical: 1.1 Android Studio and Hello World
Android Developer Fundamentals V2
This work is licensed under a Creative
Commons Attribution-NonCommercial
4.0 International License
END
29

More Related Content

Similar to Your first Android App

Day2GDSC.pptx
Day2GDSC.pptxDay2GDSC.pptx
Day2GDSC.pptx
GDSCICOER
 
2.1-Activities and Intents.pptx
2.1-Activities and Intents.pptx2.1-Activities and Intents.pptx
2.1-Activities and Intents.pptx
ab2478037
 
Gdsc android introduction
Gdsc android introductionGdsc android introduction
Gdsc android introduction
ShambhaviGupta14
 
9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)
Peter Mburu
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptx
SundaresanB5
 
Android Study Jams - Session 1
Android Study Jams - Session 1Android Study Jams - Session 1
Android Study Jams - Session 1
AditiSaxena72
 
androidPramming.ppt
androidPramming.pptandroidPramming.ppt
androidPramming.ppt
BijayKc16
 
Android study jams info session 2021 new GDSC GECBSP
Android study jams info session 2021 new GDSC GECBSPAndroid study jams info session 2021 new GDSC GECBSP
Android study jams info session 2021 new GDSC GECBSP
Domendra Sahu
 
Android study jams 1
Android study jams 1Android study jams 1
Android study jams 1
DSCBVRITH
 
Android study jams 1
Android study jams 1Android study jams 1
Android study jams 1
DSCBVRITH
 
Internship presentation
Internship presentationInternship presentation
Internship presentation
Prativa Neupane
 
Bird.pdf
 Bird.pdf Bird.pdf
Bird.pdf
RebaMaheen
 
Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdf
RebaMaheen
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdf
RebaMaheen
 
Android
Android Android
Android
Akhilesh Saini
 
DSC Android Study Jam
DSC Android Study JamDSC Android Study Jam
DSC Android Study Jam
DSC GVP
 
Accelerate Your IoT and Robotics Development Using Web Technology and Apache ...
Accelerate Your IoT and Robotics Development Using Web Technology and Apache ...Accelerate Your IoT and Robotics Development Using Web Technology and Apache ...
Accelerate Your IoT and Robotics Development Using Web Technology and Apache ...
Intel® Software
 
Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studio
Parinita03
 
My android
My androidMy android
My android
Prince Bhanwra
 
My android
My androidMy android
My android
Prince Bhanwra
 

Similar to Your first Android App (20)

Day2GDSC.pptx
Day2GDSC.pptxDay2GDSC.pptx
Day2GDSC.pptx
 
2.1-Activities and Intents.pptx
2.1-Activities and Intents.pptx2.1-Activities and Intents.pptx
2.1-Activities and Intents.pptx
 
Gdsc android introduction
Gdsc android introductionGdsc android introduction
Gdsc android introduction
 
9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)9780134433646 annuzzi ch02 (1)
9780134433646 annuzzi ch02 (1)
 
androidstudio.pptx
androidstudio.pptxandroidstudio.pptx
androidstudio.pptx
 
Android Study Jams - Session 1
Android Study Jams - Session 1Android Study Jams - Session 1
Android Study Jams - Session 1
 
androidPramming.ppt
androidPramming.pptandroidPramming.ppt
androidPramming.ppt
 
Android study jams info session 2021 new GDSC GECBSP
Android study jams info session 2021 new GDSC GECBSPAndroid study jams info session 2021 new GDSC GECBSP
Android study jams info session 2021 new GDSC GECBSP
 
Android study jams 1
Android study jams 1Android study jams 1
Android study jams 1
 
Android study jams 1
Android study jams 1Android study jams 1
Android study jams 1
 
Internship presentation
Internship presentationInternship presentation
Internship presentation
 
Bird.pdf
 Bird.pdf Bird.pdf
Bird.pdf
 
Final NEWS.pdf
Final NEWS.pdfFinal NEWS.pdf
Final NEWS.pdf
 
Final NewsApp.pdf
Final NewsApp.pdfFinal NewsApp.pdf
Final NewsApp.pdf
 
Android
Android Android
Android
 
DSC Android Study Jam
DSC Android Study JamDSC Android Study Jam
DSC Android Study Jam
 
Accelerate Your IoT and Robotics Development Using Web Technology and Apache ...
Accelerate Your IoT and Robotics Development Using Web Technology and Apache ...Accelerate Your IoT and Robotics Development Using Web Technology and Apache ...
Accelerate Your IoT and Robotics Development Using Web Technology and Apache ...
 
Creating the first app with android studio
Creating the first app with android studioCreating the first app with android studio
Creating the first app with android studio
 
My android
My androidMy android
My android
 
My android
My androidMy android
My android
 

More from Muhammad Sajid

eCommerce App Lecture
eCommerce App LectureeCommerce App Lecture
eCommerce App Lecture
Muhammad Sajid
 
Characteristics of enterprise application software
Characteristics of enterprise application softwareCharacteristics of enterprise application software
Characteristics of enterprise application software
Muhammad Sajid
 
The Checkout and Order Process
The Checkout and Order ProcessThe Checkout and Order Process
The Checkout and Order Process
Muhammad Sajid
 
The Shopping Basket
The Shopping BasketThe Shopping Basket
The Shopping Basket
Muhammad Sajid
 
Enhancing the User Experience
Enhancing the User ExperienceEnhancing the User Experience
Enhancing the User Experience
Muhammad Sajid
 
Products and Categories
Products and CategoriesProducts and Categories
Products and Categories
Muhammad Sajid
 
E-Commerce Applications Development
E-Commerce Applications Development E-Commerce Applications Development
E-Commerce Applications Development
Muhammad Sajid
 
E-Commerce Applications Development
E-Commerce Applications Development E-Commerce Applications Development
E-Commerce Applications Development
Muhammad Sajid
 
Data Transfer between Activities & Databases
Data Transfer between Activities & DatabasesData Transfer between Activities & Databases
Data Transfer between Activities & Databases
Muhammad Sajid
 
Data Transfer between Activities & Databases
Data Transfer between Activities & DatabasesData Transfer between Activities & Databases
Data Transfer between Activities & Databases
Muhammad Sajid
 
Data Transfer between Activities & Databases
Data Transfer between Activities & DatabasesData Transfer between Activities & Databases
Data Transfer between Activities & Databases
Muhammad Sajid
 
Mobile Application Development
Mobile Application DevelopmentMobile Application Development
Mobile Application Development
Muhammad Sajid
 
MOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENTMOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENT
Muhammad Sajid
 
MOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENTMOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENT
Muhammad Sajid
 
MOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENTMOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENT
Muhammad Sajid
 
MOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENTMOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENT
Muhammad Sajid
 
Group Aided Decision making revised
Group Aided Decision making revisedGroup Aided Decision making revised
Group Aided Decision making revised
Muhammad Sajid
 
Pakistan Studies notes
Pakistan Studies notesPakistan Studies notes
Pakistan Studies notes
Muhammad Sajid
 
Components of Computing Game
Components of Computing GameComponents of Computing Game
Components of Computing Game
Muhammad Sajid
 
Design Elements of Computing Game
Design Elements  of Computing GameDesign Elements  of Computing Game
Design Elements of Computing Game
Muhammad Sajid
 

More from Muhammad Sajid (20)

eCommerce App Lecture
eCommerce App LectureeCommerce App Lecture
eCommerce App Lecture
 
Characteristics of enterprise application software
Characteristics of enterprise application softwareCharacteristics of enterprise application software
Characteristics of enterprise application software
 
The Checkout and Order Process
The Checkout and Order ProcessThe Checkout and Order Process
The Checkout and Order Process
 
The Shopping Basket
The Shopping BasketThe Shopping Basket
The Shopping Basket
 
Enhancing the User Experience
Enhancing the User ExperienceEnhancing the User Experience
Enhancing the User Experience
 
Products and Categories
Products and CategoriesProducts and Categories
Products and Categories
 
E-Commerce Applications Development
E-Commerce Applications Development E-Commerce Applications Development
E-Commerce Applications Development
 
E-Commerce Applications Development
E-Commerce Applications Development E-Commerce Applications Development
E-Commerce Applications Development
 
Data Transfer between Activities & Databases
Data Transfer between Activities & DatabasesData Transfer between Activities & Databases
Data Transfer between Activities & Databases
 
Data Transfer between Activities & Databases
Data Transfer between Activities & DatabasesData Transfer between Activities & Databases
Data Transfer between Activities & Databases
 
Data Transfer between Activities & Databases
Data Transfer between Activities & DatabasesData Transfer between Activities & Databases
Data Transfer between Activities & Databases
 
Mobile Application Development
Mobile Application DevelopmentMobile Application Development
Mobile Application Development
 
MOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENTMOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENT
 
MOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENTMOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENT
 
MOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENTMOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENT
 
MOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENTMOBILE APPLICATION DEVELOPMENT
MOBILE APPLICATION DEVELOPMENT
 
Group Aided Decision making revised
Group Aided Decision making revisedGroup Aided Decision making revised
Group Aided Decision making revised
 
Pakistan Studies notes
Pakistan Studies notesPakistan Studies notes
Pakistan Studies notes
 
Components of Computing Game
Components of Computing GameComponents of Computing Game
Components of Computing Game
 
Design Elements of Computing Game
Design Elements  of Computing GameDesign Elements  of Computing Game
Design Elements of Computing Game
 

Recently uploaded

How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
EduSkills OECD
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
PECB
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Leena Ghag-Sakpal
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
Colégio Santa Teresinha
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
Nguyen Thanh Tu Collection
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
MysoreMuleSoftMeetup
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
imrankhan141184
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 

Recently uploaded (20)

How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptxBeyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
Beyond Degrees - Empowering the Workforce in the Context of Skills-First.pptx
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
ISO/IEC 27001, ISO/IEC 42001, and GDPR: Best Practices for Implementation and...
 
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
Bed Making ( Introduction, Purpose, Types, Articles, Scientific principles, N...
 
MARY JANE WILSON, A “BOA MÃE” .
MARY JANE WILSON, A “BOA MÃE”           .MARY JANE WILSON, A “BOA MÃE”           .
MARY JANE WILSON, A “BOA MÃE” .
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 9 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2024-2025 - ...
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47Mule event processing models | MuleSoft Mysore Meetup #47
Mule event processing models | MuleSoft Mysore Meetup #47
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
Traditional Musical Instruments of Arunachal Pradesh and Uttar Pradesh - RAYH...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 

Your first Android App

  • 1. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Android Developer Fundamentals V2 This work is licensed under a Creative Commons Attribution 4.0 International License. Your first Android app 1 1 Build your first app Lesson 1 1 Android Developer Fundamentals V2
  • 2. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. 1.1 Your first Android app 2
  • 3. Android Developer Fundamentals V2 This work is licensed under a Creative Commons Attribution 4.0 International License. Create your first Android app Contents ● Android Studio ● Creating "Hello World" app in Android Studio ● Basic app development workflow with Android Studio ● Running apps on virtual and physical devices 3
  • 4. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Prerequisites ● Java Programming Language ● Object-oriented programming ● XML - properties / attributes ● Using an IDE for development and debugging 4
  • 5. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Android Studio 5
  • 6. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. What is Android Studio? 6 ● Android integrated development environment (IDE) ● Project and Activity templates ● Layout editor ● Testing tools ● Gradle-based build ● Log console and debugger ● Emulators
  • 7. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Android Studio interface 7 1. Toolbar 2. Navigation bar 3. Project pane 4. Editor 5. Tabs for other panes
  • 8. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Installation Overview ● Mac, Windows, or Linux ● Download and install Android Studio from https://developer.android.com/studio/ ● See 1.1 P: Android Studio and Hello World 8
  • 9. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Creating your first Android app 9
  • 10. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Start Android Studio 10
  • 11. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Create a project inside Android Studio 11
  • 12. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Name your app 12
  • 13. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Pick activity template 13 Choose templates for common activities, such as maps or navigation drawers. Pick Empty Activity or Basic Activity for simple and custom activities.
  • 14. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Name your activity 14 ● Good practice: ○ Name main activity MainActivity ○ Name layout activity_main ● Use AppCompat ● Generating layout file is convenient
  • 15. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Project folders (imp topic) 15 1. manifests—Android Manifest file - description of app read by the Android runtime 2. java—Java source code packages 3. res—Resources (XML) - layout, strings, images, dimensions, colors... 4. build.gradle—Gradle build files
  • 16. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Gradle build system ● Modern build subsystem in Android Studio ● Three build.gradle: ○ project ○ module ○ settings ● Typically not necessary to know low-level Gradle details ● Learn more about gradle at https://gradle.org/ 16
  • 17. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Run your app 17 17 1. Run 2. Select virtual or physical device 3. OK
  • 18. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Create a virtual device 18 Use emulators to test app on different versions of Android and form factors. Tools > Android > AVD Manager or:
  • 19. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Configure virtual device 19 1. Choose hardware 2. Select Android version 3. Finalize
  • 20. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Run on a virtual device 20
  • 21. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Run on a physical device 21 1. Turn on Developer Options: a. Settings > About phone b. Tap Build number seven times 2. Turn on USB Debugging a. Settings > Developer Options > USB Debugging 3. Connect phone to computer with cable Windows/Linux additional setup: ● Using Hardware Devices Windows drivers: ● OEM USB Drivers
  • 22. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Get feedback as your app runs 1. Emulator running the app 2. Run pane 3. Run tab to open or close the Run pane 22
  • 23. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Adding logging to your app ● As the app runs, the Logcat pane shows information ● Add logging statements to your app that will show up in the Logcat pane ● Set filters in Logcat pane to see what's important to you ● Search using tags 23
  • 24. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. The Logcat pane 1. Logcat tab to show Logcat pane 2. Log level menu 24
  • 25. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Logging statement import android.util.Log; // Use class name as tag private static final String TAG = MainActivity.class.getSimpleName(); // Show message in Android Monitor, logcat pane // Log.<log-level>(TAG, "Message"); Log.d(TAG, “Creating the URI…”); 25
  • 26. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Learn more ● Meet Android Studio ● Official Android documentation at developer.android.com ● Create and Manage Virtual Devices ● Supporting Different Platform Versions ● Supporting Multiple Screens 26
  • 27. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. Learn even more ● Gradle Wikipedia page ● Google Java Programming Language style guide ● Find answers at Stackoverflow.com 27
  • 28. Android Developer Fundamentals V2 Your first Android app This work is licensed under a Creative Commons Attribution 4.0 International License. What's Next? 28 ● Concept Chapter: 1.1 Your first Android app ● Practical: 1.1 Android Studio and Hello World
  • 29. Android Developer Fundamentals V2 This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License END 29