SlideShare a Scribd company logo
© Simplilearn.All rights reserved. 1
Android Applications Development—Beginners
chapter 2—Introduction to Android Development
© Simplilearn. All rights reserved.
Objectives
• Demonstrate Android Studio installation
• Explore the Android Architecture
• List key features in the latest version of Android 6.0—Marshmallow
• Create a new Android Project in Android Studio
• Describe the Hello world program
© Simplilearn. All rights reserved. 2
After this lesson,
you will be able to:
Introduction to Android Development
Installing Android SDK and Android Studio
© Simplilearn. All rights reserved. 3
Demo 1—Installing Android Studio and Android SDK tools
Demonstrate how to install Android Studio and Android SDK tools.
4
© Simplilearn. All rights reserved.
Android Architecture
Key Concepts of Android Operating System:
We will explore the Android architecture in detail.
•
•
Android architecture is the building block of the Android OS.
Android OS is a stack of software components which is divided into five sections and four main layers.
Key Points
Android
to remember in Android are as follows:
Operating system consists of diverse software layers.
Each layer gives different administrations to the layer above
All Together they create the OS, middleware, and apps.
it.
© Simplilearn. All rights reserved. 5
Android Architecture (contd.)
Android operating system is a stack of software components which is roughly divided into five sections
and four main layers as shown in the architecture diagram.
Architecture Diagram Of Android Operating System
© Simplilearn. All rights reserved. 6
Layers in Android Architecture
Following are the different layers in the Android Architecture:
•
•
•
•
•
Open Source Linux Kernel
Library Components (Libraries)
ART (Android Run Time)
Application Framework
Android Applications
© Simplilearn. All rights reserved. 7
Layers in Android Architecture—Linux Kernel
Android operating system’s bottom layer is Linux Kernel.
•
•
•
•
•
Android is built on Linux 2.6 Kernel.
It
It
It
It
interacts
provides
provides
with the hardware and it contains all the important hardware drivers.
the basic system functionality.
a collection of device drivers which are useful while interfacing with other devices.
is also responsible for Network Stack and Hardware Abstraction.
© Simplilearn. All rights reserved. 8
Layers in Android Architecture—Linux kernel (contd.)
Here is a table emphasizing the different versions of Kernel :
© Simplilearn. All rights reserved. 9
ANDROID VERSION LINUX KERNEL VERSION
1.0 2.6.25
1.5[Cupcake] 2.6.27
1.6[Donut] 2.6.29
2.2[Froyo] 2.6.32
2.3[Gingerbread] 2.6.35
3.0[Honeycomb] 2.6.36
4.0[IceCreamSandwich] 3.0.1
4.1-4.2 [Jellybean] 3.0.31
4.4-4.4.4[Kit Kat] 3.10
5.0-5.1.1 [Lollipop] 3.16.1
6.0 [Marshmallow] 3.18.10
Layers in Android Architecture—Libraries
Android’s native Libraries is the layer that enables the device to handle different types of data.
A
•
•
•
•
•
summary of some
Surface Manager
Media framework
SQLite
WebKit
OpenGL
key core Android libraries available to the Android developer is as follows:
© Simplilearn. All rights reserved. 10
Layers in Android Architecture—Android Runtime
Android Runtime contains Dalvik Virtual machine and Core Java libraries.
• Dalvik Virtual Machine
• It is a form of Java Virtual Machine used in Android devices to run apps and is enhanced for low
processing power and low memory backgrounds.
• Android Runtime (ART)
• Android Runtime has several benefits over Dalvik VM such as AOT (Ahead Of Time) compilation
enhanced garbage collection.
and
• Core Java Libraries
• These Libraries provides most of the functionalities defined in the Java SE Libraries.
© Simplilearn. All rights reserved. 11
Layers in Android Architecture—Application Framework
Application Framework are the blocks that the application openly networks with.
Key Blocks of Application Framework:
• Activity Manager
o It helps complete the activity lifecycle of applications.
Content Providers
o It is used to accomplish data sharing between applications.
Telephony Manager
o It is used to take care of all voice calls.
Location Manager
o It is used to bring about the Locations obtained from GPS or
Resource Manager
•
•
•
cell towers.
•
o It is used to manage the different resources types in Android applications.
© Simplilearn. All rights reserved. 12
Layers in Android Architecture—Applications
Applications are the topmost layer in the Android architecture.
Several standard applications comes pre-installed with every device, such as:
•
•
•
•
SMS Client App
Dialer
Web Browser
Contact Manager
© Simplilearn. All rights reserved. 13
Key Features of Android Marshmallow
Android Marshmallow is a refinement and extension of the core features and
Android Lollipop.
functionality introduced in
• We will look at the major areas of the new OS, whether new and improved.
© Simplilearn. All rights reserved. 14
Google Now On Tap
Google Now On Tap is one of the key features of Marshmallow with respect to Google Integration.
•
•
Google Now On Tap is perhaps the biggest deal of all in Android Marshmallow.
Long-pressing the home button now activates Google Now On Tap, replacing the
old gesture for Google Now from any screen.
• When summoned, now On Tap reads the content of any screen on your phone.
© Simplilearn. All rights reserved. 15
Voice API and Assist API
Marshmallow also introduces a new Voice API to Android.
•
•
This allows third-party apps to access Google’s voice command functionality.
This feature is not exactly working yet, but it has been
Google using TuneIn Radio.
successfully demonstrated by
• This option comes courtesy of the Assist API,
it.
available to anyone who wants to
compile a voice assistant to make use of
© Simplilearn. All rights reserved. 16
Google Settings App
Google settings are now a dedicated part of the settings menu.
• You will find privacy information, account preferences, and
accounts.
It is also where you can manage your OK, Google hot-word
listening' mode.
more for your Google
• detection, and 'always
• There is another new feature called Set up nearby device.
© Simplilearn. All rights reserved. 17
Android Pay
With the delivery of the fingerprint API and two new Nexus devices equipped with fingerprint
Android Pay has arrived.
scanners,
• Android Pay is one of a number of touchless payment systems including Apple
and Samsung Pay.
Pay
• Android Pay is simple to set up but it requires an NFC-equipped terminal at
participating retailers and an NFC-equipped smartphone.
© Simplilearn. All rights reserved. 18
Doze
Doze is, after “Google Now on Tap”, perhaps the biggest thing in Marshmallow.
• Doze is an intelligent battery management feature that recognizes when your
device is not in use.
Other devices lose an average of 15–25 percent of battery life overnight.
•
• Marshmallow can supposedly take that down to 3–5 percent, taking
time to nearly two weeks in the process.
your standby
• Device standby will only be handled by an unmodified Doze mode.
© Simplilearn. All rights reserved. 19
Application Standby
Application Standby is equivalent of Doze, like a stock Android version of Greenify.
• Application Standby identifies apps that have not been used in a
them into a deep sleep.
while and puts
• Google has
standby.
created a white list with which you can prevent apps from being put on
© Simplilearn. All rights reserved. 20
Type-C and Reverse charging
Marshmallow also supports the new standard, USB Type-C.
•
•
•
Type-C cables
Type-C cables
Marshmallow
are reversible.
also support faster data transfer and charging speeds.
devices will also be able to reverse-charge other devices.
© Simplilearn. All rights reserved. 21
MicroSD Support
The battle to accept microSD cards has been one of the most interesting in Android history.
• Marshmallow to provide full-fledged
devices.
MicroSD cards can be formatted to a
support for microSD expansion in Android
•
•
•
specific device.
You have system level support for external storage.
Apps and data can now be seamlessly stored on an external microSD.
© Simplilearn. All rights reserved. 22
Internal Storage and RAM Management
Marshmallow has also overhauled the Storage area of settings.
• Storage and USB now adds a convenient stock file manager, at the bottom of the
list, called Explore.
• RAM usage
users.
has typically been the reserve of Android geeks rather than regular
© Simplilearn. All rights reserved. 23
Application Permissions
The Android system now offers user-facing controls over some, but not all, app permissions.
• You can grant individual App Permissions the first time an
attempts to access them.
app
• Permissions for a particular app can be viewed within the
Settings menu.
24
© Simplilearn. All rights reserved.
Fingerprint API
Android Marshmallow introduces system-level fingerprint support via the new Fingerprint API.
• Google has set
certification.
minimum standards for scanner accuracy to pass its device
© Simplilearn. All rights reserved. 25
Automatic Application Backup
Marshmallow can now automatically back up both your application and data.
• Application data can be saved, so your passwords, settings and progress can all be
restored with much less effort.
© Simplilearn. All rights reserved. 26
Network Security Reset and Monthly Security Patches
Network security reset is a feature in the Backup and reset settings which allows you to remove all
passwords, settings, and connections associated with Bluetooth,
•
cellular data, and Wi-Fi.
This feature demonstrates how much attention has been
paid to enhance security and user-facing controls
Marshmallow.
in
• Marshmallow now displays your device’s Android security
patch level section in the About phone section.
© Simplilearn. All rights reserved. 27
Encryption
New Android devices running Marshmallow are required to use full-disk encryption
devices updated from a previous version of Android do not.
by default, but
• Encrypted devices will also be subject to Marshmallow’s verified boot process to
ensure the trustworthiness of their software during each boot sequence.
© Simplilearn. All rights reserved. 28
Android for Work
Android Marshmallow is encouraging the enterprises for Bring Your Own Device (BYOD) options.
• Android for Work
© Simplilearn. All rights reserved. 29
Smart Lock
Smart Lock on Marshmallow provides options for unlocking your device per various native scenarios.
• Smart Lock is found in the security settings and requires the use of some form
lock screen security.
of
• Smart Lock includes options for trusted devices, places,
detection.
faces, and on-body
• Each Smart Lock feature is opt-in and reversible.
© Simplilearn. All rights reserved. 30
Smart Lock for Passwords
Smart Lock for Passwords is basically a Google password manager.
•
•
•
Enabling the feature allows your passwords to
Can also exclude apps
be saved to your Google account
View your Smart Lock for Passwords content
© Simplilearn. All rights reserved. 31
Text Selection
Marshmallow introduces an improved text selection setup.
• With the 'chunking' selection method, it is much easier to
select whole words.
© Simplilearn. All rights reserved. 32
Direct Share
The idea is to make contacts appear when using the share picker along with a list of apps.
• Direct share
© Simplilearn. All rights reserved. 33
Chrome Custom Tabs
Android Marshmallow now provides developers with custom Chrome tabs.
•
•
Developers can color and brand the Chrome custom tab.
Marshmallow
before.
makes Android easier to use than ever
© Simplilearn. All rights reserved. 34
Introduction to Android
Project
Development
Creating Android
© Simplilearn. All rights reserved. 35
Demo 2—Creating a New Android Project in Android Studio
Demonstrate how to create a new Android project in Android Studio to see the project structure.
36
© Simplilearn. All rights reserved.
Introduction to Android Development
Creating a Hello World App
© Simplilearn. All rights reserved. 37
Demo 3—Creating a Simple Hello World App
Demonstrate how to create a Simple Hello World App.
38
© Simplilearn. All rights reserved.
Summary
• Installed Android Studio
• Explained Android Architecture
• Explored key features of Android Marshmallow
• Created a project in Android Studio
• Demonstrated the “Hello World” program
© Simplilearn. All rights reserved. 39
Let us summarize
the topics covered
in this lesson:
Quiz
© Simplilearn. All rights reserved. 40
a. A stack of software for mobility
b. Name of the Google mobile device
c. A virtual machine
d. None of the above
© Simplilearn. All rights reserved. 41
QUIZ
1
What is Android?
a. A stack of software for mobility
b. Name of the Google mobile device
c. A virtual machine
d. None of the above
© Simplilearn. All rights reserved. 42
The correct answer is a.
Explanation: Android is the name of the mobile operating system made by Google. It supports the
mobile phone manufacturers by offering the users to access Google’s own services like Search,
YouTube, Maps, Gmail and more.
QUIZ
1
What is Android?
a. TRUE
b. FALSE
© Simplilearn. All rights reserved. 43
QUIZ
2
Android is based on the Linux System.
a. TRUE
b. FALSE
© Simplilearn. All rights reserved. 44
The correct answer is a .
Explanation: The whole Android OS is built on top of the Linux Kernel. The term Kernel means the
core of any Operating System. It means, Android at its core is Linux. But remember that you can’t run
any Linux packages on Android.
QUIZ
2
Android is based on the Linux System.
a. Service
b. Activity
c. TextView
d. Linear Layout and Relative Layout
© Simplilearn. All rights reserved. 45
QUIZ
3
Which of the following refers to a single screen with its own User Interface?
a. Service
b. Activity
c. TextView
d. Linear Layout and Relative Layout
© Simplilearn. All rights reserved. 46
The correct answer is b.
Explanation: An activity represents a single screen with a user interface.
QUIZ
3
Which of the following refers to a single screen with its own User Interface?
a. Manifest
b. Layout
c. Gradle Build script
d. Drawable
© Simplilearn. All rights reserved. 47
QUIZ
4
Where do you declare an application's launcher activity ?
a. Manifest
b. Layout
c. Gradle Build script
d. Drawable
© Simplilearn. All rights reserved. 48
The correct answer is a.
Explanation: The main activity for your app must be declared in the manifest with an <intent-filter>
that includes the MAIN action and LAUNCHER category.
QUIZ
4
Where do you declare an application's launcher activity ?
a. The source code
b. The list of strings used in the app
c. The permissions the app requires
d. None of the above
© Simplilearn. All rights reserved. 49
QUIZ
5
What does manifest xml file contain?
a. The source code
b. The list of strings used in the app
c. The permissions the app requires
d. None of the above
© Simplilearn. All rights reserved. 50
The correct answer is c.
Explanation: Permissions in the manifest xml file protects the application by restricting the access to
any protected parts. It also declares the android API that the application is going to use. It lists the
instrumentation classes. The instrumentation classes provides profiling and other information.
QUIZ
5
What does manifest xml file contain?
© Simplilearn.All rights reserved. 51
This concludes ‘Introduction to Android Development ’.
The next lesson is ‘Android Activity and Intents ’.
© Simplilearn. All rights reserved.
© Simplilearn.All rights reserved. 52
Thank You
© Simplilearn. All rights reserved.

More Related Content

Similar to Android ch2..pptx

Android 130923124440-phpapp01
Android 130923124440-phpapp01Android 130923124440-phpapp01
Android 130923124440-phpapp01
rajesh kumar
 
Android technology
Android technology Android technology
Android technology
vikas malviya
 
Android based os
Android based osAndroid based os
Android based os
Robinson Johnwilson
 
Android App Developement
Android App DevelopementAndroid App Developement
Android App Developement
Aayush Gupta
 
Lick my Lollipop
Lick my LollipopLick my Lollipop
Lick my Lollipop
Tamara Momčilović
 
Basic of Android App Development
Basic of Android App DevelopmentBasic of Android App Development
Basic of Android App Development
Abhijeet Gupta
 
Android Security Humla Part 1
Android Security Humla Part 1Android Security Humla Part 1
Android Security Humla Part 1
Nikhil Kulkarni
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions newJoe Jacob
 
Intro to android (gdays)
Intro to android (gdays)Intro to android (gdays)
Intro to android (gdays)
Omolara Adejuwon
 
Fun Food
Fun FoodFun Food
Fun Food
Bhadra Gowdra
 
android phone ppt
android phone pptandroid phone ppt
android phone ppt
mehul patel
 
Android
AndroidAndroid
Android report
Android reportAndroid report
Android report
blogger at indiandswad
 
Enhancing and modifying_the_core_android_os
Enhancing and modifying_the_core_android_osEnhancing and modifying_the_core_android_os
Enhancing and modifying_the_core_android_os
Arnav Gupta
 
Android and its feature
Android and its featureAndroid and its feature
Android and its feature
Shubham Kumar
 
Basic android-ppt
Basic android-pptBasic android-ppt
Basic android-ppt
Srijib Roy
 

Similar to Android ch2..pptx (20)

Android ppt
Android ppt Android ppt
Android ppt
 
Android 130923124440-phpapp01
Android 130923124440-phpapp01Android 130923124440-phpapp01
Android 130923124440-phpapp01
 
Android technology
Android technology Android technology
Android technology
 
Android based os
Android based osAndroid based os
Android based os
 
Android App Developement
Android App DevelopementAndroid App Developement
Android App Developement
 
Lick my Lollipop
Lick my LollipopLick my Lollipop
Lick my Lollipop
 
Gl android platform
Gl android platformGl android platform
Gl android platform
 
Basic of Android App Development
Basic of Android App DevelopmentBasic of Android App Development
Basic of Android App Development
 
Android Security Humla Part 1
Android Security Humla Part 1Android Security Humla Part 1
Android Security Humla Part 1
 
Introduction to android sessions new
Introduction to android   sessions newIntroduction to android   sessions new
Introduction to android sessions new
 
Android zensar
Android zensarAndroid zensar
Android zensar
 
document
documentdocument
document
 
Intro to android (gdays)
Intro to android (gdays)Intro to android (gdays)
Intro to android (gdays)
 
Fun Food
Fun FoodFun Food
Fun Food
 
android phone ppt
android phone pptandroid phone ppt
android phone ppt
 
Android
AndroidAndroid
Android
 
Android report
Android reportAndroid report
Android report
 
Enhancing and modifying_the_core_android_os
Enhancing and modifying_the_core_android_osEnhancing and modifying_the_core_android_os
Enhancing and modifying_the_core_android_os
 
Android and its feature
Android and its featureAndroid and its feature
Android and its feature
 
Basic android-ppt
Basic android-pptBasic android-ppt
Basic android-ppt
 

Recently uploaded

Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
TheSMSPoint
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
mz5nrf0n
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
Drona Infotech
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
NYGGS Automation Suite
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
Shane Coughlan
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
Alina Yurenko
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
Octavian Nadolu
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Crescat
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
Deuglo Infosystem Pvt Ltd
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 

Recently uploaded (20)

Transform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR SolutionsTransform Your Communication with Cloud-Based IVR Solutions
Transform Your Communication with Cloud-Based IVR Solutions
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
在线购买加拿大英属哥伦比亚大学毕业证本科学位证书原版一模一样
 
Mobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona InfotechMobile App Development Company In Noida | Drona Infotech
Mobile App Development Company In Noida | Drona Infotech
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
Enterprise Resource Planning System in Telangana
Enterprise Resource Planning System in TelanganaEnterprise Resource Planning System in Telangana
Enterprise Resource Planning System in Telangana
 
openEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain SecurityopenEuler Case Study - The Journey to Supply Chain Security
openEuler Case Study - The Journey to Supply Chain Security
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
Artificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension FunctionsArtificia Intellicence and XPath Extension Functions
Artificia Intellicence and XPath Extension Functions
 
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
Introducing Crescat - Event Management Software for Venues, Festivals and Eve...
 
Empowering Growth with Best Software Development Company in Noida - Deuglo
Empowering Growth with Best Software  Development Company in Noida - DeugloEmpowering Growth with Best Software  Development Company in Noida - Deuglo
Empowering Growth with Best Software Development Company in Noida - Deuglo
 
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 

Android ch2..pptx

  • 1. © Simplilearn.All rights reserved. 1 Android Applications Development—Beginners chapter 2—Introduction to Android Development © Simplilearn. All rights reserved.
  • 2. Objectives • Demonstrate Android Studio installation • Explore the Android Architecture • List key features in the latest version of Android 6.0—Marshmallow • Create a new Android Project in Android Studio • Describe the Hello world program © Simplilearn. All rights reserved. 2 After this lesson, you will be able to:
  • 3. Introduction to Android Development Installing Android SDK and Android Studio © Simplilearn. All rights reserved. 3
  • 4. Demo 1—Installing Android Studio and Android SDK tools Demonstrate how to install Android Studio and Android SDK tools. 4 © Simplilearn. All rights reserved.
  • 5. Android Architecture Key Concepts of Android Operating System: We will explore the Android architecture in detail. • • Android architecture is the building block of the Android OS. Android OS is a stack of software components which is divided into five sections and four main layers. Key Points Android to remember in Android are as follows: Operating system consists of diverse software layers. Each layer gives different administrations to the layer above All Together they create the OS, middleware, and apps. it. © Simplilearn. All rights reserved. 5
  • 6. Android Architecture (contd.) Android operating system is a stack of software components which is roughly divided into five sections and four main layers as shown in the architecture diagram. Architecture Diagram Of Android Operating System © Simplilearn. All rights reserved. 6
  • 7. Layers in Android Architecture Following are the different layers in the Android Architecture: • • • • • Open Source Linux Kernel Library Components (Libraries) ART (Android Run Time) Application Framework Android Applications © Simplilearn. All rights reserved. 7
  • 8. Layers in Android Architecture—Linux Kernel Android operating system’s bottom layer is Linux Kernel. • • • • • Android is built on Linux 2.6 Kernel. It It It It interacts provides provides with the hardware and it contains all the important hardware drivers. the basic system functionality. a collection of device drivers which are useful while interfacing with other devices. is also responsible for Network Stack and Hardware Abstraction. © Simplilearn. All rights reserved. 8
  • 9. Layers in Android Architecture—Linux kernel (contd.) Here is a table emphasizing the different versions of Kernel : © Simplilearn. All rights reserved. 9 ANDROID VERSION LINUX KERNEL VERSION 1.0 2.6.25 1.5[Cupcake] 2.6.27 1.6[Donut] 2.6.29 2.2[Froyo] 2.6.32 2.3[Gingerbread] 2.6.35 3.0[Honeycomb] 2.6.36 4.0[IceCreamSandwich] 3.0.1 4.1-4.2 [Jellybean] 3.0.31 4.4-4.4.4[Kit Kat] 3.10 5.0-5.1.1 [Lollipop] 3.16.1 6.0 [Marshmallow] 3.18.10
  • 10. Layers in Android Architecture—Libraries Android’s native Libraries is the layer that enables the device to handle different types of data. A • • • • • summary of some Surface Manager Media framework SQLite WebKit OpenGL key core Android libraries available to the Android developer is as follows: © Simplilearn. All rights reserved. 10
  • 11. Layers in Android Architecture—Android Runtime Android Runtime contains Dalvik Virtual machine and Core Java libraries. • Dalvik Virtual Machine • It is a form of Java Virtual Machine used in Android devices to run apps and is enhanced for low processing power and low memory backgrounds. • Android Runtime (ART) • Android Runtime has several benefits over Dalvik VM such as AOT (Ahead Of Time) compilation enhanced garbage collection. and • Core Java Libraries • These Libraries provides most of the functionalities defined in the Java SE Libraries. © Simplilearn. All rights reserved. 11
  • 12. Layers in Android Architecture—Application Framework Application Framework are the blocks that the application openly networks with. Key Blocks of Application Framework: • Activity Manager o It helps complete the activity lifecycle of applications. Content Providers o It is used to accomplish data sharing between applications. Telephony Manager o It is used to take care of all voice calls. Location Manager o It is used to bring about the Locations obtained from GPS or Resource Manager • • • cell towers. • o It is used to manage the different resources types in Android applications. © Simplilearn. All rights reserved. 12
  • 13. Layers in Android Architecture—Applications Applications are the topmost layer in the Android architecture. Several standard applications comes pre-installed with every device, such as: • • • • SMS Client App Dialer Web Browser Contact Manager © Simplilearn. All rights reserved. 13
  • 14. Key Features of Android Marshmallow Android Marshmallow is a refinement and extension of the core features and Android Lollipop. functionality introduced in • We will look at the major areas of the new OS, whether new and improved. © Simplilearn. All rights reserved. 14
  • 15. Google Now On Tap Google Now On Tap is one of the key features of Marshmallow with respect to Google Integration. • • Google Now On Tap is perhaps the biggest deal of all in Android Marshmallow. Long-pressing the home button now activates Google Now On Tap, replacing the old gesture for Google Now from any screen. • When summoned, now On Tap reads the content of any screen on your phone. © Simplilearn. All rights reserved. 15
  • 16. Voice API and Assist API Marshmallow also introduces a new Voice API to Android. • • This allows third-party apps to access Google’s voice command functionality. This feature is not exactly working yet, but it has been Google using TuneIn Radio. successfully demonstrated by • This option comes courtesy of the Assist API, it. available to anyone who wants to compile a voice assistant to make use of © Simplilearn. All rights reserved. 16
  • 17. Google Settings App Google settings are now a dedicated part of the settings menu. • You will find privacy information, account preferences, and accounts. It is also where you can manage your OK, Google hot-word listening' mode. more for your Google • detection, and 'always • There is another new feature called Set up nearby device. © Simplilearn. All rights reserved. 17
  • 18. Android Pay With the delivery of the fingerprint API and two new Nexus devices equipped with fingerprint Android Pay has arrived. scanners, • Android Pay is one of a number of touchless payment systems including Apple and Samsung Pay. Pay • Android Pay is simple to set up but it requires an NFC-equipped terminal at participating retailers and an NFC-equipped smartphone. © Simplilearn. All rights reserved. 18
  • 19. Doze Doze is, after “Google Now on Tap”, perhaps the biggest thing in Marshmallow. • Doze is an intelligent battery management feature that recognizes when your device is not in use. Other devices lose an average of 15–25 percent of battery life overnight. • • Marshmallow can supposedly take that down to 3–5 percent, taking time to nearly two weeks in the process. your standby • Device standby will only be handled by an unmodified Doze mode. © Simplilearn. All rights reserved. 19
  • 20. Application Standby Application Standby is equivalent of Doze, like a stock Android version of Greenify. • Application Standby identifies apps that have not been used in a them into a deep sleep. while and puts • Google has standby. created a white list with which you can prevent apps from being put on © Simplilearn. All rights reserved. 20
  • 21. Type-C and Reverse charging Marshmallow also supports the new standard, USB Type-C. • • • Type-C cables Type-C cables Marshmallow are reversible. also support faster data transfer and charging speeds. devices will also be able to reverse-charge other devices. © Simplilearn. All rights reserved. 21
  • 22. MicroSD Support The battle to accept microSD cards has been one of the most interesting in Android history. • Marshmallow to provide full-fledged devices. MicroSD cards can be formatted to a support for microSD expansion in Android • • • specific device. You have system level support for external storage. Apps and data can now be seamlessly stored on an external microSD. © Simplilearn. All rights reserved. 22
  • 23. Internal Storage and RAM Management Marshmallow has also overhauled the Storage area of settings. • Storage and USB now adds a convenient stock file manager, at the bottom of the list, called Explore. • RAM usage users. has typically been the reserve of Android geeks rather than regular © Simplilearn. All rights reserved. 23
  • 24. Application Permissions The Android system now offers user-facing controls over some, but not all, app permissions. • You can grant individual App Permissions the first time an attempts to access them. app • Permissions for a particular app can be viewed within the Settings menu. 24 © Simplilearn. All rights reserved.
  • 25. Fingerprint API Android Marshmallow introduces system-level fingerprint support via the new Fingerprint API. • Google has set certification. minimum standards for scanner accuracy to pass its device © Simplilearn. All rights reserved. 25
  • 26. Automatic Application Backup Marshmallow can now automatically back up both your application and data. • Application data can be saved, so your passwords, settings and progress can all be restored with much less effort. © Simplilearn. All rights reserved. 26
  • 27. Network Security Reset and Monthly Security Patches Network security reset is a feature in the Backup and reset settings which allows you to remove all passwords, settings, and connections associated with Bluetooth, • cellular data, and Wi-Fi. This feature demonstrates how much attention has been paid to enhance security and user-facing controls Marshmallow. in • Marshmallow now displays your device’s Android security patch level section in the About phone section. © Simplilearn. All rights reserved. 27
  • 28. Encryption New Android devices running Marshmallow are required to use full-disk encryption devices updated from a previous version of Android do not. by default, but • Encrypted devices will also be subject to Marshmallow’s verified boot process to ensure the trustworthiness of their software during each boot sequence. © Simplilearn. All rights reserved. 28
  • 29. Android for Work Android Marshmallow is encouraging the enterprises for Bring Your Own Device (BYOD) options. • Android for Work © Simplilearn. All rights reserved. 29
  • 30. Smart Lock Smart Lock on Marshmallow provides options for unlocking your device per various native scenarios. • Smart Lock is found in the security settings and requires the use of some form lock screen security. of • Smart Lock includes options for trusted devices, places, detection. faces, and on-body • Each Smart Lock feature is opt-in and reversible. © Simplilearn. All rights reserved. 30
  • 31. Smart Lock for Passwords Smart Lock for Passwords is basically a Google password manager. • • • Enabling the feature allows your passwords to Can also exclude apps be saved to your Google account View your Smart Lock for Passwords content © Simplilearn. All rights reserved. 31
  • 32. Text Selection Marshmallow introduces an improved text selection setup. • With the 'chunking' selection method, it is much easier to select whole words. © Simplilearn. All rights reserved. 32
  • 33. Direct Share The idea is to make contacts appear when using the share picker along with a list of apps. • Direct share © Simplilearn. All rights reserved. 33
  • 34. Chrome Custom Tabs Android Marshmallow now provides developers with custom Chrome tabs. • • Developers can color and brand the Chrome custom tab. Marshmallow before. makes Android easier to use than ever © Simplilearn. All rights reserved. 34
  • 35. Introduction to Android Project Development Creating Android © Simplilearn. All rights reserved. 35
  • 36. Demo 2—Creating a New Android Project in Android Studio Demonstrate how to create a new Android project in Android Studio to see the project structure. 36 © Simplilearn. All rights reserved.
  • 37. Introduction to Android Development Creating a Hello World App © Simplilearn. All rights reserved. 37
  • 38. Demo 3—Creating a Simple Hello World App Demonstrate how to create a Simple Hello World App. 38 © Simplilearn. All rights reserved.
  • 39. Summary • Installed Android Studio • Explained Android Architecture • Explored key features of Android Marshmallow • Created a project in Android Studio • Demonstrated the “Hello World” program © Simplilearn. All rights reserved. 39 Let us summarize the topics covered in this lesson:
  • 40. Quiz © Simplilearn. All rights reserved. 40
  • 41. a. A stack of software for mobility b. Name of the Google mobile device c. A virtual machine d. None of the above © Simplilearn. All rights reserved. 41 QUIZ 1 What is Android?
  • 42. a. A stack of software for mobility b. Name of the Google mobile device c. A virtual machine d. None of the above © Simplilearn. All rights reserved. 42 The correct answer is a. Explanation: Android is the name of the mobile operating system made by Google. It supports the mobile phone manufacturers by offering the users to access Google’s own services like Search, YouTube, Maps, Gmail and more. QUIZ 1 What is Android?
  • 43. a. TRUE b. FALSE © Simplilearn. All rights reserved. 43 QUIZ 2 Android is based on the Linux System.
  • 44. a. TRUE b. FALSE © Simplilearn. All rights reserved. 44 The correct answer is a . Explanation: The whole Android OS is built on top of the Linux Kernel. The term Kernel means the core of any Operating System. It means, Android at its core is Linux. But remember that you can’t run any Linux packages on Android. QUIZ 2 Android is based on the Linux System.
  • 45. a. Service b. Activity c. TextView d. Linear Layout and Relative Layout © Simplilearn. All rights reserved. 45 QUIZ 3 Which of the following refers to a single screen with its own User Interface?
  • 46. a. Service b. Activity c. TextView d. Linear Layout and Relative Layout © Simplilearn. All rights reserved. 46 The correct answer is b. Explanation: An activity represents a single screen with a user interface. QUIZ 3 Which of the following refers to a single screen with its own User Interface?
  • 47. a. Manifest b. Layout c. Gradle Build script d. Drawable © Simplilearn. All rights reserved. 47 QUIZ 4 Where do you declare an application's launcher activity ?
  • 48. a. Manifest b. Layout c. Gradle Build script d. Drawable © Simplilearn. All rights reserved. 48 The correct answer is a. Explanation: The main activity for your app must be declared in the manifest with an <intent-filter> that includes the MAIN action and LAUNCHER category. QUIZ 4 Where do you declare an application's launcher activity ?
  • 49. a. The source code b. The list of strings used in the app c. The permissions the app requires d. None of the above © Simplilearn. All rights reserved. 49 QUIZ 5 What does manifest xml file contain?
  • 50. a. The source code b. The list of strings used in the app c. The permissions the app requires d. None of the above © Simplilearn. All rights reserved. 50 The correct answer is c. Explanation: Permissions in the manifest xml file protects the application by restricting the access to any protected parts. It also declares the android API that the application is going to use. It lists the instrumentation classes. The instrumentation classes provides profiling and other information. QUIZ 5 What does manifest xml file contain?
  • 51. © Simplilearn.All rights reserved. 51 This concludes ‘Introduction to Android Development ’. The next lesson is ‘Android Activity and Intents ’. © Simplilearn. All rights reserved.
  • 52. © Simplilearn.All rights reserved. 52 Thank You © Simplilearn. All rights reserved.

Editor's Notes

  1.  Linux kernel is the bottom layer of android architecture .This layer provides a basic system functionality like process management, device management like Camera, Keypad, Display, Bluetooth and all the drivers of system
  2. Surface manager: It is used for compositing window manager with off-screen buffering. Off-screen buffering means the apps can’t directly draw into the screen, instead the drawings go to the off-screen buffer.  The Android multimedia framework includes support for playing variety of common media types, so that you can easily integrate audio, video and images into your applications. SQLite is used to develop embedded software for devices like televisions, cell phones, cameras, etc. It can manage low to medium-traffic HTTP requests. SQLite can change files into smaller size archives with lesser metadata. SQLite is used as a temporary dataset to get processed with some data within an application. WebKit is a rendering engine library to render web pages in view and windows. It also features a framework to interact with user events such as following links on user clicks.
  3. API is an online “application programming interface” that allows developers to interact with external services. These are the commands that the developer of the service has determined will be used to access certain features of their program.
  4. Is Android Pay the same as Google Pay? Google Pay merges two formerly separate apps, Android Pay and Google Wallet. Today, Google rolled out a new app, Google Pay for Android. In case the name doesn't give it away, it's designed to let you pay for things and track purchases via your phone.
  5. Android Marshmallow provides native support for fingerprint recognition on supported devices via a standard API, allowing third-party applications to implement fingerprint-based authentication. Fingerprints can be used for unlocking devices and authenticating Play Store and Google Pay purchases.