SlideShare a Scribd company logo
1 of 17
Android Study Jam
Create your first android application using Java & Firebase
Android Study Jam
Agenda :
● Introduction to Android Studio
● Android Studio User Interface
● XML (eXtensible Markup Language)
● Java Programming Language
● What is Firebase?
● Example
● Conclusion
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 (eXtensible Markup Language)
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.
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
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
Build better apps
Auth
Cloud
Functions
Cloud
Firestore
Hosting
ML Kit
Realtime
Database
Cloud
Storage
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
Extensions
Android Study Jam
BREAK !
for 15 minutes.
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 !
Android Study Jam
THANK YOU
and have fun while being an Android Developer!

More Related Content

Similar to Create Your First Android App with Java & Firebase

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 Dasdscfetju
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_javaHarry Potter
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingJames Wong
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingLuis Goldster
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_javaHoang Nguyen
 
Object oriented programming-with_java
Object oriented programming-with_javaObject oriented programming-with_java
Object oriented programming-with_javaTony Nguyen
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingYoung Alista
 
Object oriented programming
Object oriented programmingObject oriented programming
Object oriented programmingFraboni Ec
 
SMI - Introduction to Java
SMI - Introduction to JavaSMI - Introduction to Java
SMI - Introduction to JavaSMIJava
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appiumPratik Patel
 
Android Development in a Nutshell
Android Development in a NutshellAndroid Development in a Nutshell
Android Development in a NutshellAleix Solé
 
Hacking the Codename One Source Code - Part IV - Transcript.pdf
Hacking the Codename One Source Code - Part IV - Transcript.pdfHacking the Codename One Source Code - Part IV - Transcript.pdf
Hacking the Codename One Source Code - Part IV - Transcript.pdfShaiAlmog1
 
Android app development lesson 1
Android app development lesson 1Android app development lesson 1
Android app development lesson 1Kalluri Vinay Reddy
 
Code Documentation. That ugly thing...
Code Documentation. That ugly thing...Code Documentation. That ugly thing...
Code Documentation. That ugly thing...Christos Manios
 

Similar to Create Your First Android App with Java & Firebase (20)

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
Android Android
Android
 
Android Basic
Android BasicAndroid Basic
Android Basic
 
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
 
SMI - Introduction to Java
SMI - Introduction to JavaSMI - Introduction to Java
SMI - Introduction to Java
 
Java lab zero lecture
Java  lab  zero lectureJava  lab  zero lecture
Java lab zero lecture
 
Getting started with appium
Getting started with appiumGetting started with appium
Getting started with appium
 
Android Development in a Nutshell
Android Development in a NutshellAndroid Development in a Nutshell
Android Development in a Nutshell
 
Android basics
Android basicsAndroid basics
Android basics
 
Hacking the Codename One Source Code - Part IV - Transcript.pdf
Hacking the Codename One Source Code - Part IV - Transcript.pdfHacking the Codename One Source Code - Part IV - Transcript.pdf
Hacking the Codename One Source Code - Part IV - Transcript.pdf
 
Android app development lesson 1
Android app development lesson 1Android app development lesson 1
Android app development lesson 1
 
Synapseindia android apps application
Synapseindia android apps applicationSynapseindia android apps application
Synapseindia android apps application
 
Java-Unit-I.ppt
Java-Unit-I.pptJava-Unit-I.ppt
Java-Unit-I.ppt
 
Code Documentation. That ugly thing...
Code Documentation. That ugly thing...Code Documentation. That ugly thing...
Code Documentation. That ugly thing...
 

Recently uploaded

PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
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 ReformChameera Dedduwage
 
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 9654467111Sapana Sha
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 

Recently uploaded (20)

PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
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
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
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
 
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
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 

Create Your First Android App with Java & Firebase

  • 1. Android Study Jam Create your first android application using Java & Firebase
  • 2. Android Study Jam Agenda : ● Introduction to Android Studio ● Android Studio User Interface ● XML (eXtensible Markup Language) ● Java Programming Language ● What is Firebase? ● Example ● Conclusion
  • 3. Android Studio Android Studio is the official Integrated Development Environment (IDE) for Android app development, based on IntelliJ IDEA . Android Study Jam
  • 4. 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
  • 5. 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
  • 6. XML (eXtensible Markup Language) 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. Android Study Jam
  • 7. 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
  • 8. 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
  • 9. 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
  • 10. 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
  • 11. 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
  • 12. 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
  • 13. 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
  • 14. Build better apps Auth Cloud Functions Cloud Firestore Hosting ML Kit Realtime Database Cloud Storage 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 Extensions Android Study Jam
  • 15. BREAK ! for 15 minutes.
  • 16. 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 ! Android Study Jam
  • 17. THANK YOU and have fun while being an Android Developer!