Android Presentation
Android Presentation
APP
DEVELOPM
ENT
INDUSTRIAL TRAINING
PRESENTATION
Submitted by: Submitted to:
•Tarun Sharma •Mr. Nafeesh
•roll Ahmad Sir
no.:252001003 •Department:
•Department: ECE-A
ECE-A
UIET UIETKUK
KUK
HELL
O!
My name is Tarun Sharma
from UIET KUK.
I have recently completed my
training in “Android App
Development”
From Internshala.
01 02
INTRODUCTION WORLD OF
T0 ANDROID KOTLIN
03 04
HIGHER ORDER
ANDROID KICK
FUNCTIONALITI
OFF
ES
01.INTRODU
CTION TO
ANDROID
WHAT
ANDROID
ACTUALLY IS?
Well most of us are aware of this
very fact that android is an
operating system which operates a
BUT WHAT IS
lump huge sum of over 3 billion
devices including smart phones,
OPERATING
tablets, televisions,watches,etc.
SYSTEM?
It is a software that controls the
operation of a computer and directs
the processing of programs (as by
assigning storage space in memory and
Android
Versions
There are many versions of android which appeared through
years .
Some of them are:
• •Android 1.0
• •Android 1.1
• •Android 1.5 (cup cake) – API 3
• •Android 5.0(lolly pop)
• •Android 11 (latest version)
ENVIRONMENT AND TOOLS USED TO
DEVELOP ANDROID APPS
ANDROID SOFTWARE
STUDIO DEVELOPMENT KIT
Android studio is the official SDK contains all the essential
Integrated Development libraries used to develop
Environment(IDE) for Android android apps. Android studio
app development. It has and software development kit
IntelliJ’s powerful code editor work together.
and developer tools, and
various other features that
enhance productivity while
developing Android apps.
02
WORLD OF
KOTLIN
Kotlin is a
programming
language
Target to JVM, Kotlin is a
cross platform, statically
typed, general purpose
programming language with
type inference. Kotlin is
designed to interoperate fully
with Java but type inference
allows its syntax to be more
concise. Kotlin is sponsored
by JetBrains and Google
• Every program starts executing with main
function.
-------------------------------------------
-----Syntax for declaring variables:
Þ Keyword identifier = initialization
Þ E.g. var note=4
Identifiers
Identifiers are the variable names that we create to store
the value of a variable.
E.g. Tarun, mobile_number, etc.
INDEX
TABLE
FOR
STRING
String
Since literals in Kotlin are implemented as instances of String class, we can use several
Functions
methods and properties of this class.
•compareTo function - compares this String (object) with the specified object. Returns 0 if
the object is equal to the specified object.
We can use index access operator instead of get function as index access operator internally
calls get function.
•plus function - returns a new string which is obtained by the concatenation of this string
and the string passed to this function.
We can use + operator instead of plus function as + operator calls plus function under the
hood.
•subSequence Function - returns a new character sequence starting at the specified start and
Example
program for
string
functions
User Defined
Functions
Functions are a collection of code that returns some result.
Functions can combine a group of activities, represented
by a single name called the function name. They are the
most basic ways to organise programs.
fun
-Functions only have a single word. E.g. Tarun,
callme(arg1,arg2)
Tarun_sharma, etc. callme()
{
Calling a
//function body
user-
} Creating a
user- defined
defined functions
Arra
ys
An array is a data structure that contains a group of
elements.
Do-While
FOR loop While Loop
Loop
The FOR loop iterates While checks the condition & Executes the body and
through anything that if satisfied, executes the body then checks condition.
provides an iterator and returns to the condition
check
•Elements can not be added or altered in immutable lists. can be added as well as
•Elements
altered in mutable lists.
•Defined using listOf() keyword.
•Defined using mutableListOf()
keyword.
•var/val listName=listOf<datatype>(list_of_items).
•var/ val
listName=mutableListOf<datatype>(list_
of_items).
ERRORS AND EXCEPTIONS
Errors occur while compiling/executing code due to
incorrect sequence or incorrect logic.
------------------------------------------------------------------
--
try
Using thecode
{ // some try-catch block to handle
exceptions:
}
catch (e: Checks
SomeException) the code
{ // handler
} Runs, if
finally correct
{
// optional finally block Runs, if
Classes in Kotlin
What is OOP?
OOP stands for Object Oriented Programming is a
programming paradigm which uses objects
and classes to organise, structure and optimise the code.
<Tag>……</Tag.
e.g. <LinearLayout></LinearLayout>
<LinearLayout
Syntax
android:width=“match_parent”
android:height=“match_parent”>
of
</LinearLayout> XML
VIEW AND
VIEWGROUP
A layout defines the structure in which the various
OBJECTS
elements on the screen or the activity will be arranged.