SlideShare una empresa de Scribd logo
1 de 20
Create your first android application using Java & Firebase
Android Study Jam
About the speaker
Abderrahmane SAOUDI
→ Organizer @GDG Ghardaia
→ Graphic Designer
→ Android Developer
→ Notion Professional User
Android Study Jam
• Introduction to Android Studio
• Android Studio User Interface
• XML (eXtensible Markup Language)
• Java Programming Language
• What is Firebase?
• Example
• Conclusion
Agenda :
Android Study Jam
Android Studio
Android Studio is the official Integrated
Development Environment (IDE) for
Android app development, based on
IntelliJ IDEA .
Android Study Jam
Android Studio User Interface
1. Toolbar lets you carry out a wide range of
actions.
2. Navigation bar helps you navigate through
your project and open files for editing.
3. Editor window is where you create and modify
code. Depending on the current file type, the
editor can change.
4. Tool window bar contains the buttons that
allow you to expand or collapse individual tool
windows.
5. Tool windows give you access to specific
tasks. You can expand them and collapse them.
6. Status bar displays the status of your project
and the IDE itself, warnings or messages.
Android Study Jam
Android Studio Structure
● manifest: Every app project must have an
AndroidManifest.xml file at the root of the project
source set. It describes essential information
about your app.
● java: This is the folder in your project where you
will be storing all of the source code files written in
Java programming language.
● res: It contains folders that help you separate and
sort the resources of your application.
● Gradle Scripts: The gradle scripts folder contains
the scripts used to build the app are: configuration
files, properties files, and setting files.
Android Study Jam
XML used to store and organize data. It's easily
scalable and simple to develop.
In Android, the XML is used to implement UI-
related data, and it's a lightweight markup
language that doesn't make layout heavy.
XML only contains tags, while implementing they
need to be just invoked.
XML (eXtensible Markup Language)
XML Syntax
Android Study Jam
XML Syntax
<Item library:attribute_1="value1"
library:attribute_2="value2">
. . .
</Item>
<Item library:attribute_1="value1"
library:attribute_2="value2"/>
<?xml version="1.0" encoding="utf-8" ?>
Android Study Jam
Java Programming Language
Java is an object-oriented programming language
that produces software for multiple platforms.
When a programmer writes a Java application, the
compiled code runs on most operating systems
(OS).
Java is used to develop mobile apps, web apps,
desktop apps, games and much more.
Android Study Jam
Variables in Java
Variable in Java is a data container that stores the data values during Java program execution.
Every variable is assigned data type which designates the type and quantity of value it can hold.
Variable is a memory location name of the data.
● Primitive :
○ byte
○ int
○ double
○ float
○ char
○ boolean
. . .
● Non-Primitive :
○ String
○ Array
○ Class
. . .
Android Study Jam
Expressions in Java
An expression is a combination of operators, constants
and variables. An expression may consist of one or
more operands, and zero or more operators to
produce a value.
Android Study Jam
Flow controls in Java
Decision Making in programming is similar to
decision making in real life. In programming also
face some situations where we want a certain
block of code to be executed when some
condition is fulfilled.
If (condition) {
// Executes this block if condition
is true.
}
Else {
// Executes this block if condition
is false.
}
variable = (condition)? value_if_true : value_if_false;
switch (variable) {
case value1:
// Some code to execute.
break;
case value2:
// Some code to execute.
break;
default:
// Some code to execute.
break;
}
Android Study Jam
Android Study Jam
Loops in Java
Looping in programming languages is a feature
which facilitates the execution of a set of
instructions repeatedly while some condition
evaluates to true.
for (initialization expr; test expr; update expr)
{
// loop statements...
}
for (int i=0; i<5; i++)
{
System.out.println ("GDG Ghardaia");
}
do {
// loop statements...
} while (condition);
int i=0;
do {
System.out.println ("GDG Ghardaia");
i++;
} while (i<5);
while (condition) {
// loop statements...
}
int i=0;
while (i<5) {
System.out.println ("GDG Ghardaia");
i++;
}
Android Study Jam
Firebase is an app development platform
that helps you build and grow apps and
games users love. Backed by Google and
trusted by millions of businesses around
the world.
Firebase Database
Android Study Jam
Grow and engage users
Analytics
Predictions
Cloud
Messaging
Remote
Config
A/B Testing
Dynamic
Links
In-app
Messaging
Improve app quality
Crashlytics
Performance
Monitoring
Test Lab
App Distribution BETA
Build better apps
Auth
Cloud
Functions
Cloud
Firestore
Hosting
ML Kit
Realtime
Database
Cloud
Storage
Extensions
BREAK !
for 15 minutes.
Android Study Jam
Open your laptop, in Android studio try to
complete this exercise :
Create Android application with TextView and
Button. When the button clicks it sends the
number to Firebase and increment it by 1.
Let Make it Real !
5
INCREASE
THANK YOU
and have fun while being an Android Developer!

Más contenido relacionado

Similar a Android Dev Study Jam.pptx

Java Is A Programming Dialect And Registering Stage Essay
Java Is A Programming Dialect And Registering Stage EssayJava Is A Programming Dialect And Registering Stage Essay
Java Is A Programming Dialect And Registering Stage Essay
Liz Sims
 
Installing eclipse & sdk
Installing eclipse & sdkInstalling eclipse & sdk
Installing eclipse & sdk
Arun Kumar
 
Android Development in a Nutshell
Android Development in a NutshellAndroid Development in a Nutshell
Android Development in a Nutshell
Aleix Solé
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_java
Harry Potter
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
James Wong
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
Luis Goldster
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_java
Tony Nguyen
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
Young Alista
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
Fraboni Ec
 

Similar a Android Dev Study Jam.pptx (20)

Android app development lesson 1
Android app development lesson 1Android app development lesson 1
Android app development lesson 1
 
Java Is A Programming Dialect And Registering Stage Essay
Java Is A Programming Dialect And Registering Stage EssayJava Is A Programming Dialect And Registering Stage Essay
Java Is A Programming Dialect And Registering Stage Essay
 
Introduction to Android- A session by Sagar Das
Introduction to Android-  A session by Sagar DasIntroduction to Android-  A session by Sagar Das
Introduction to Android- A session by Sagar Das
 
Android Session.pdf
Android Session.pdfAndroid Session.pdf
Android Session.pdf
 
Installing eclipse & sdk
Installing eclipse & sdkInstalling eclipse & sdk
Installing eclipse & sdk
 
Intro to Android Programming
Intro to Android ProgrammingIntro to Android Programming
Intro to Android Programming
 
2018 top ide's for andriod development
2018 top ide's for andriod development2018 top ide's for andriod development
2018 top ide's for andriod development
 
Android basics
Android basicsAndroid basics
Android basics
 
Android Development in a Nutshell
Android Development in a NutshellAndroid Development in a Nutshell
Android Development in a Nutshell
 
Android app development ppt
Android app development pptAndroid app development ppt
Android app development ppt
 
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
 
Session 2 beccse
Session 2 beccseSession 2 beccse
Session 2 beccse
 
Synapseindia android apps application
Synapseindia android apps applicationSynapseindia android apps application
Synapseindia android apps application
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_java
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_java
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_java
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programming
 

Último

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Último (20)

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptxOn_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
On_Translating_a_Tamil_Poem_by_A_K_Ramanujan.pptx
 

Android Dev Study Jam.pptx

  • 1.
  • 2. Create your first android application using Java & Firebase Android Study Jam
  • 3. About the speaker Abderrahmane SAOUDI → Organizer @GDG Ghardaia → Graphic Designer → Android Developer → Notion Professional User
  • 4. Android Study Jam • Introduction to Android Studio • Android Studio User Interface • XML (eXtensible Markup Language) • Java Programming Language • What is Firebase? • Example • Conclusion Agenda :
  • 5. Android Study Jam Android Studio Android Studio is the official Integrated Development Environment (IDE) for Android app development, based on IntelliJ IDEA .
  • 6. Android Study Jam Android Studio User Interface 1. Toolbar lets you carry out a wide range of actions. 2. Navigation bar helps you navigate through your project and open files for editing. 3. Editor window is where you create and modify code. Depending on the current file type, the editor can change. 4. Tool window bar contains the buttons that allow you to expand or collapse individual tool windows. 5. Tool windows give you access to specific tasks. You can expand them and collapse them. 6. Status bar displays the status of your project and the IDE itself, warnings or messages.
  • 7. Android Study Jam Android Studio Structure ● manifest: Every app project must have an AndroidManifest.xml file at the root of the project source set. It describes essential information about your app. ● java: This is the folder in your project where you will be storing all of the source code files written in Java programming language. ● res: It contains folders that help you separate and sort the resources of your application. ● Gradle Scripts: The gradle scripts folder contains the scripts used to build the app are: configuration files, properties files, and setting files.
  • 8. Android Study Jam XML used to store and organize data. It's easily scalable and simple to develop. In Android, the XML is used to implement UI- related data, and it's a lightweight markup language that doesn't make layout heavy. XML only contains tags, while implementing they need to be just invoked. XML (eXtensible Markup Language) XML Syntax
  • 9. Android Study Jam XML Syntax <Item library:attribute_1="value1" library:attribute_2="value2"> . . . </Item> <Item library:attribute_1="value1" library:attribute_2="value2"/> <?xml version="1.0" encoding="utf-8" ?>
  • 10. Android Study Jam Java Programming Language Java is an object-oriented programming language that produces software for multiple platforms. When a programmer writes a Java application, the compiled code runs on most operating systems (OS). Java is used to develop mobile apps, web apps, desktop apps, games and much more.
  • 11. Android Study Jam Variables in Java Variable in Java is a data container that stores the data values during Java program execution. Every variable is assigned data type which designates the type and quantity of value it can hold. Variable is a memory location name of the data. ● Primitive : ○ byte ○ int ○ double ○ float ○ char ○ boolean . . . ● Non-Primitive : ○ String ○ Array ○ Class . . .
  • 12. Android Study Jam Expressions in Java An expression is a combination of operators, constants and variables. An expression may consist of one or more operands, and zero or more operators to produce a value.
  • 13. Android Study Jam Flow controls in Java Decision Making in programming is similar to decision making in real life. In programming also face some situations where we want a certain block of code to be executed when some condition is fulfilled. If (condition) { // Executes this block if condition is true. } Else { // Executes this block if condition is false. } variable = (condition)? value_if_true : value_if_false; switch (variable) { case value1: // Some code to execute. break; case value2: // Some code to execute. break; default: // Some code to execute. break; }
  • 15. Android Study Jam Loops in Java Looping in programming languages is a feature which facilitates the execution of a set of instructions repeatedly while some condition evaluates to true. for (initialization expr; test expr; update expr) { // loop statements... } for (int i=0; i<5; i++) { System.out.println ("GDG Ghardaia"); } do { // loop statements... } while (condition); int i=0; do { System.out.println ("GDG Ghardaia"); i++; } while (i<5); while (condition) { // loop statements... } int i=0; while (i<5) { System.out.println ("GDG Ghardaia"); i++; }
  • 16. Android Study Jam Firebase is an app development platform that helps you build and grow apps and games users love. Backed by Google and trusted by millions of businesses around the world. Firebase Database
  • 17. Android Study Jam Grow and engage users Analytics Predictions Cloud Messaging Remote Config A/B Testing Dynamic Links In-app Messaging Improve app quality Crashlytics Performance Monitoring Test Lab App Distribution BETA Build better apps Auth Cloud Functions Cloud Firestore Hosting ML Kit Realtime Database Cloud Storage Extensions
  • 18. BREAK ! for 15 minutes.
  • 19. Android Study Jam Open your laptop, in Android studio try to complete this exercise : Create Android application with TextView and Button. When the button clicks it sends the number to Firebase and increment it by 1. Let Make it Real ! 5 INCREASE
  • 20. THANK YOU and have fun while being an Android Developer!