`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
❖ Evolution of Android
❖ Introduction to Android
❖ Android Architecture
❖ Features
❖ What is Android Runtime?
❖ Installation
❖ Activity Life Cycle
❖ Android Layouts
❖ Manifest
❖ Demo
Agenda For Today
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Evolution of Android
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Evolution of Android
Alpha Donut Eclair Froyo GingerbreadBeta Cupcake
1.0
1.6
1.5
1.1
2.2-2-2.3
2.3-2.3.7
2.0-2.5
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Evolution of Android
Honeycomb Kitkat Lollipop Marshmallow NougatIcecream
sandwich
Jellybean
3.0-
3.2.6
4.4-
4.4.4
4.1-
4.3.1
4.0-
4.0.4
6.0-6.0.1
7.0-7.1.2
5.0-5.1.1
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Introduction to Android
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Introduction to Android
➢ Android's kernel is based on one of the Linux kernel's long-term
support (LTS) branches.
➢ Designed for touchscreen mobile devices such as smartphones
and tablet computers.
Android is a mobile operating system (OS) developed by Google.
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Android Architecture
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Android Architecture
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Features of Android
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Features of Android
Powerful
open source
Customizable
operating
system
Ready made,
low cost for
high-tech
devices
Variety of
apps can be
developed
Reduces the
overall
complexity
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Categories of Android
Entertainment
Tools
Communication
Productivity
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Categories of Android
Personalization
Music and Audio
Social Media and video
Travel
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
What is Android Runtime?
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
What is Android Runtime?
Android Runtime consists of Dalvik Virtual machine and Core Java
libraries.
➢ DVM is optimized for low processing power and low memory
environments.
➢ Unlike JVM, the Dalvik Virtual Machine doesn’t run .class files,
instead it runs .dex files.
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Installation
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Installation - JDK
1 Go to the link :
http://www.oracle.com/technetw
ork/java/javase/downloads/jdk8-
downloads-2133151.html
And download JDK.
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Installation – Android Studio
Go to the link :
https://developer.an
droid.com/studio/ind
ex.html
1
Download latest
Android Studio 2.3.2
2
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Activity Life Cycle
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Activity Life Cycle
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Activity Life Cycle
In this case the activity is destroyed
and removed from the memory
In this state, the activity is created.
In this state, the activity is in the
foreground and the user can interact
with it.
Activity is partially obscured by
another activity. The other activity
that's in the foreground is semi-
transparent.
In this state, the activity is completely
hidden and not visible to the user. it is
considered to be in the background.
Create
Resumed (running state)
Stopped
Paused
Destroy
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Android Layouts
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Android layouts
It is the UI which is associated with the activity and presented to user
Layouts are declared in two ways:
Declare UI elements in XML: Layout can be defined in
XML file called as layout.xml and present in res/layout
folder.
Instantiate layout elements at runtime: Layout can be
created programmatically.
1
2
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Types of Layout
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Linear Layout
Linear layout is a view group that aligns all children in a single direction, vertically or
horizontally.
➢ android:orientation – you can specify the layout direction using this
attribute.
➢ android:weight – you can specify how much space it should occupy on
the screen using this attribute.
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Relative Layout
It is a view group that displays child views in relative positions. The position of each
view can be specified as relative to sibling elements (such as to the left-of or below
another view).
➢ Eliminates nested view groups and keep layout hierarchy flat, which
improves performance.
➢ Relative layout is considered to be lightweight compared to
LinearLayout.
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Recycler View
RecyclerView widget was launched in Android Lollipop SDK and it also have a backport support.
 You also have the flexibility to define custom layout managers and animations for RecyclerView widgets.
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
List View
➢ A ListView can take custom adapter class. This class must extend
ArrayAdapter or BaseAdapter or SimpleCursorAdapter
➢ The list items are automatically inserted to the list using an adapter that
pulls content from a source
ListView is a view group that displays a list of scrollable items.
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Grid View
GridView
Grids
➢ It let developers to add the widgets in grids.
➢ GridView has out of box support for scrolling, so developers
need not add the ScrollView.
➢ GridView uses underlying ListAdapter to setup children in it.
GridView is a ViewGroup that displays items in a two-dimensional,
scrollable grid.
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Manifest
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Manifest
The manifest file provides essential information about your app to the Android system, which the system
must have before it can run any of the app's code.
Manifest File structure:
➢ Action
➢ Activity
➢ Activity-alias
➢ Application
➢ Category
➢ Data
➢ Grant-uri-permission
➢ Instrumentation
➢ Intent-filter
➢ Manifest
➢ Meta-data
➢ Permission
➢ Permission-group
➢ Permission-tree
➢ Provider
➢ Receiver
➢ Service
➢ Supports-screens
➢ Uses-configuration
➢ Uses-feature
➢ Uses-library
➢ Uses-permission
➢ Uses-sdk
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Android App
This contains the .java source files for your project. By default, it
includes an MainActivity.java source file.
This is a directory for files that define your app's user interface.
It describes the fundamental characteristics of the app and defines
each of its components.
This is an auto generated file which contains compileSdkVersion,
buildToolsVersion, applicationId, minSdkVersion, targetSdkVersion,
versionCode and versionName
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Demo
`
https://www.edureka.co/android-development-certification-courseEDUREKA ANDROID CERTIFICATION TRAINING
Create Android Application
First step is to create a simple Android Application.
➢ An activity represents a single screen with a
user interface just like window or frame of Java.
➢ Android activity is the subclass of
ContextThemeWrapper class.
Android Tutorial | Android App Development | Android Tutorial For Beginners | Edureka

Android Tutorial | Android App Development | Android Tutorial For Beginners | Edureka