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
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
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