SlideShare a Scribd company logo
By : Eyad Almassri
Lecture 3: Android Infrastructure
2020
Device Management
• Apps are designed to accommodate
numerous devices, often without user
help
• Screen requirements
– Design considerations: screen size, screen
density, orientation, and resolution
– Density-independent pixel (dp): equivalent
to one physical pixel on a 160 dpi screen
– Interface design using dp unit: system can
perform the necessary scaling for each
screen based on its size, resolution,
orientation, and density
2
3
(figure 16.2)
Four device display variables that directly impact the design of user interface
screens.
© Cengage Learning 2014
Understanding Operating
Systems, 7e
4
(figure 16.7)
Comparison of the four screen sizes supported by Android and the different
densities for each size: low dpi (ldpi), medium dpi (mdpi), high dpi (hdpi), and
extra high dpi (xhdpi). (Illustration source: http://developer.android.com)
© Cengage Learning 2014
Device Management (cont’d.)
• Battery management
– Android device’s battery usage
information: Settings tab
– Ways to improver battery availability
• Users choose to leave certain functions
turned off until they are actually needed, e.g.,
GPS, Bluetooth communications, background
file syncing, etc.
• Wi-Fi instead of telephony: saves power
5
Understanding Operating
Systems, 7e
6
(figure 16.8)
This device has 1 hour, 32 minutes of battery time remaining. This display
also indicates that the screen is consuming 73 percent of the device’s battery
resources at a very bright setting and that the Android operating system is
using 5 percent.
© Cengage Learning 2014
File Management
• Linux-managed at the kernel level
• User ID: the part of the operating system
that is the user’s own protected mode and
that allows it to manage the files it creates
and executes
– Each application has its own
– Not shared: no other apps can read or alter
the app’s files
– Two apps with same User ID: data is shared
• Supplementary apps
– Necessary for file manipulation tasks7
User Interface
• Touch screen
– Features icons that are manipulated by
the user
– User-selected apps that remain in place
when the user swipes the screen from
side-to-side
– “Soft buttons” along screen bottom:
allow the user to perform critical tasks,
e.g., go home, go back, or view open
tasks
8
User Interface (cont’d.)
9
(figure 16.12)
User-definable icons and buttons at the base of the display allow users to
quickly access these functions.
© Cengage Learning 2014
Touch Screen Controls
10
(table 16.6)
Seven primary gestures that users can make on their mobile devices.
© Cengage Learning 2014
Touch Screen Controls (cont’d.)
11
(table 16.6) (cont’d.)
Seven primary gestures that users can make on their mobile devices.
© Cengage Learning 2014
ANDROID ARCHITECTURE
The software stack is split into Four
Layers::
1- The application layer
2- The application framework
3- The libraries and runtime
4- The kernel
Android Infrastructure
LINUX KERNEL
•The architecture is based on the Linux
kernel.
• This layer is core of android architecture.
It provides service like power management,
memory management, security etc.
• It helps in software or hardware binding
for better communication.
LINUX KERNEL
What the kernel does
• The kernel has 4 jobs:
1. Memory management: Keep track of how much
memory is used to store what, and where
2. Process management: Determine which
processes can use the CPU, when, and for how
long
3. Device drivers: Act as mediator/interpreter
between the hardware and processes
4. System calls and security: Receive requests for
service from the processes
15
NATIVE LIBRARIES
• Android has its own libraries, which is written in
C/C++. These libraries cannot be accessed directly.
With the help of application framework, we can
access these libraries. There are many libraries like
web libraries to access web browsers, libraries for
android and video formats etc.
Android Run Time
• The Android Runtime was designed
specifically for Android to meet the needs of
running in an embedded environment
where you have limited battery, limited
memory, limited CPU.
Android Run Time
•This is in blue, meaning that it's written in
the Java programming language.
•The core library contains all of the collection
classes, utilities, IO, all the utilities and tools
that you’ve come to expected to use.
Android Run Time (ART)
What is ART- ART is software layer between
applications and operating system.It provide
mechanism for executing java language.ART perform
two major things to achieve this:
1.Runs Android framework and Applications
using hybrid model of Interpreter, JIT and profile
based Ahead of time compilation(AOT).
2.Memory Management using Memory
allocator and Concurrent compacting Garbage
collector.
19
Application Framework
•This is all written in a Java programming
language and the application framework is the
toolkit that all applications use.
•These applications include the ones that come
with a phone like the home applications, or the
phone application.
•It includes applications written by Google, and it
includes apps that will be written by you.
•So, all apps use the same framework and the
same APIs.

More Related Content

PPT
Lec005 android start_program
Eyad Almasri
 
PPTX
Lec001
Eyad Almasri
 
PPT
Lec004 setting up for development
Eyad Almasri
 
PPTX
Lecture 2: Android Introduction
Eyad Almasri
 
PPTX
Introduction to Android
Oum Saokosal
 
PPTX
Basic android-ppt
Srijib Roy
 
PPTX
All about Android app development -Texavi presentation
Texavi Innovative Solutions
 
PPT
Android ppt
Ansh Singh
 
Lec005 android start_program
Eyad Almasri
 
Lec001
Eyad Almasri
 
Lec004 setting up for development
Eyad Almasri
 
Lecture 2: Android Introduction
Eyad Almasri
 
Introduction to Android
Oum Saokosal
 
Basic android-ppt
Srijib Roy
 
All about Android app development -Texavi presentation
Texavi Innovative Solutions
 
Android ppt
Ansh Singh
 

What's hot (20)

PPTX
Android Technology
R
 
PDF
Introduction to Android Development
Aly Abdelkareem
 
PPTX
Android app ppt
ADI ADARSH
 
PPT
Android Training
Tbldevelopment
 
ODP
Custom Android App Development – Web Animation India
Marion Welch
 
PPTX
Introduction to Android and Android Studio
Suyash Srijan
 
PDF
Introduction to Android development - Presentation Report
Atul Panjwani
 
PPT
Android My Seminar
Ganesh Waghmare
 
PPTX
Introduction to android
zeelpatel0504
 
PPTX
Android application development ppt
Gautam Kumar
 
PDF
Android fundamentals and tutorial for beginners
Boom Shukla
 
PDF
Android Overview
atomi
 
PDF
Android Programming
Pasi Manninen
 
PPT
Introduction to Android
Ranjith Kumar
 
PPTX
Android Web app
Sumit Kumar
 
KEY
Android Development: The Basics
Mike Desjardins
 
PPT
Android Training - Part 2
Tbldevelopment
 
PDF
Android Development Workshop
Peter Robinett
 
PPTX
Android mp3 player
Subhrajit Das
 
PPTX
Android development, Android
NetConnectWeb
 
Android Technology
R
 
Introduction to Android Development
Aly Abdelkareem
 
Android app ppt
ADI ADARSH
 
Android Training
Tbldevelopment
 
Custom Android App Development – Web Animation India
Marion Welch
 
Introduction to Android and Android Studio
Suyash Srijan
 
Introduction to Android development - Presentation Report
Atul Panjwani
 
Android My Seminar
Ganesh Waghmare
 
Introduction to android
zeelpatel0504
 
Android application development ppt
Gautam Kumar
 
Android fundamentals and tutorial for beginners
Boom Shukla
 
Android Overview
atomi
 
Android Programming
Pasi Manninen
 
Introduction to Android
Ranjith Kumar
 
Android Web app
Sumit Kumar
 
Android Development: The Basics
Mike Desjardins
 
Android Training - Part 2
Tbldevelopment
 
Android Development Workshop
Peter Robinett
 
Android mp3 player
Subhrajit Das
 
Android development, Android
NetConnectWeb
 
Ad

Similar to Android Infrastructure (20)

PPTX
Android OS and application development
Lokesh Kumar
 
PPTX
UNIT-1 INTRODUCTION TO ANDROID [Autosaved].pptx
VaibhavKhunger2
 
PDF
Lecture-01.pdf good lecture important notes
IqraHanif27
 
PDF
Ch1 hello, android
Jehad2012
 
PPTX
Android architecture
poojapainter
 
PPTX
Android operating system
Anwar Hasan Shuvo
 
PDF
Consumer Electronics
GirishBasole
 
PPTX
MAD unit 1.pptxi 8hv8yv8cy8c8ycy8c8yv8uvyv
NawazWariya
 
PDF
Wifi Direct Based Chat And File Transfer Android Application
Nitin Bhasin
 
PPT
Android OS
Nitin Ramchandani
 
PPT
Android App Developement
Aayush Gupta
 
PPTX
Android Architecture v2 presetnation extension
RishiRajeshSharma
 
PDF
Android_Architectuture pdf complete detail
RishiRajeshSharma
 
PPTX
mobile application development mobile application development
Kamrankhan925215
 
PPT
Chapter 1 Introduction to android.ppt pl
ENBAKOMZAWUGA
 
PPTX
Android by aftab
Md Aftab Alam
 
PPTX
Android introduction
Reena Nachare
 
PDF
An introduction on Android OS, its working and android development
Sanskar Saraf
 
PPT
Android General information
Prashant Gosai
 
PPTX
An introduction on Android OS, its working and android development
Sanskar Saraf
 
Android OS and application development
Lokesh Kumar
 
UNIT-1 INTRODUCTION TO ANDROID [Autosaved].pptx
VaibhavKhunger2
 
Lecture-01.pdf good lecture important notes
IqraHanif27
 
Ch1 hello, android
Jehad2012
 
Android architecture
poojapainter
 
Android operating system
Anwar Hasan Shuvo
 
Consumer Electronics
GirishBasole
 
MAD unit 1.pptxi 8hv8yv8cy8c8ycy8c8yv8uvyv
NawazWariya
 
Wifi Direct Based Chat And File Transfer Android Application
Nitin Bhasin
 
Android OS
Nitin Ramchandani
 
Android App Developement
Aayush Gupta
 
Android Architecture v2 presetnation extension
RishiRajeshSharma
 
Android_Architectuture pdf complete detail
RishiRajeshSharma
 
mobile application development mobile application development
Kamrankhan925215
 
Chapter 1 Introduction to android.ppt pl
ENBAKOMZAWUGA
 
Android by aftab
Md Aftab Alam
 
Android introduction
Reena Nachare
 
An introduction on Android OS, its working and android development
Sanskar Saraf
 
Android General information
Prashant Gosai
 
An introduction on Android OS, its working and android development
Sanskar Saraf
 
Ad

More from Eyad Almasri (18)

PPT
Chapter 2 / E-Commerce: Mechanisms, Infrastructures, and Tools – Technology o...
Eyad Almasri
 
PPT
Chapter 8 / Electronic Payment
Eyad Almasri
 
PPT
Chapter 7/Social Computing
Eyad Almasri
 
PPT
Chapter 6/Mobile Commerce and Ubiquitous Computing Technology of E-Business
Eyad Almasri
 
PPT
Chapter 5/Innovative EC Systems: From E-Government to E-Learning, Collaborat...
Eyad Almasri
 
PPT
Chapter 4/B2B E-Commerce – Technology of E-Business
Eyad Almasri
 
PPT
Chapter 3/Retailing In Electronic Commerce: Products and Services Technology...
Eyad Almasri
 
PPT
Chapter 1/ Overview of Electronic Commerce Technology of E-Business
Eyad Almasri
 
PDF
الوحدة الثامنة - مقدمة عن أمن المعلومات - مهارات الحاسوب
Eyad Almasri
 
PDF
الوحدة السابعة - شبكة الأنترنت - مهارات الحاسوب
Eyad Almasri
 
PDF
الوحدة السادسة - شبكات الحاسوب - مهارات الحاسوب
Eyad Almasri
 
PDF
الوحدة الرابعة - كيفية كتابة الاوراق البحثية بإستخدام طريقة APA
Eyad Almasri
 
PDF
الوحدة الخامسة - كيفية تحضير عرض البوربوينت
Eyad Almasri
 
PDF
الوحدة الثالثة - البحث عن المعلومات في الانترنت والمصادر الالكترونية -مهارات ...
Eyad Almasri
 
PDF
الوحدة الثانية - مكونات الحاسوب المادية والبرمجية -مهارات الحاسوب
Eyad Almasri
 
PDF
أنظمة جامعة فلسطين المقدمه للطلاب - بوابة الطالب 2018
Eyad Almasri
 
PDF
أنظمة جامعة فلسطين المقدمه للطلاب - نظام اليوبينار
Eyad Almasri
 
PPT
مكونات الحاسوب
Eyad Almasri
 
Chapter 2 / E-Commerce: Mechanisms, Infrastructures, and Tools – Technology o...
Eyad Almasri
 
Chapter 8 / Electronic Payment
Eyad Almasri
 
Chapter 7/Social Computing
Eyad Almasri
 
Chapter 6/Mobile Commerce and Ubiquitous Computing Technology of E-Business
Eyad Almasri
 
Chapter 5/Innovative EC Systems: From E-Government to E-Learning, Collaborat...
Eyad Almasri
 
Chapter 4/B2B E-Commerce – Technology of E-Business
Eyad Almasri
 
Chapter 3/Retailing In Electronic Commerce: Products and Services Technology...
Eyad Almasri
 
Chapter 1/ Overview of Electronic Commerce Technology of E-Business
Eyad Almasri
 
الوحدة الثامنة - مقدمة عن أمن المعلومات - مهارات الحاسوب
Eyad Almasri
 
الوحدة السابعة - شبكة الأنترنت - مهارات الحاسوب
Eyad Almasri
 
الوحدة السادسة - شبكات الحاسوب - مهارات الحاسوب
Eyad Almasri
 
الوحدة الرابعة - كيفية كتابة الاوراق البحثية بإستخدام طريقة APA
Eyad Almasri
 
الوحدة الخامسة - كيفية تحضير عرض البوربوينت
Eyad Almasri
 
الوحدة الثالثة - البحث عن المعلومات في الانترنت والمصادر الالكترونية -مهارات ...
Eyad Almasri
 
الوحدة الثانية - مكونات الحاسوب المادية والبرمجية -مهارات الحاسوب
Eyad Almasri
 
أنظمة جامعة فلسطين المقدمه للطلاب - بوابة الطالب 2018
Eyad Almasri
 
أنظمة جامعة فلسطين المقدمه للطلاب - نظام اليوبينار
Eyad Almasri
 
مكونات الحاسوب
Eyad Almasri
 

Android Infrastructure

  • 1. By : Eyad Almassri Lecture 3: Android Infrastructure 2020
  • 2. Device Management • Apps are designed to accommodate numerous devices, often without user help • Screen requirements – Design considerations: screen size, screen density, orientation, and resolution – Density-independent pixel (dp): equivalent to one physical pixel on a 160 dpi screen – Interface design using dp unit: system can perform the necessary scaling for each screen based on its size, resolution, orientation, and density 2
  • 3. 3 (figure 16.2) Four device display variables that directly impact the design of user interface screens. © Cengage Learning 2014
  • 4. Understanding Operating Systems, 7e 4 (figure 16.7) Comparison of the four screen sizes supported by Android and the different densities for each size: low dpi (ldpi), medium dpi (mdpi), high dpi (hdpi), and extra high dpi (xhdpi). (Illustration source: http://developer.android.com) © Cengage Learning 2014
  • 5. Device Management (cont’d.) • Battery management – Android device’s battery usage information: Settings tab – Ways to improver battery availability • Users choose to leave certain functions turned off until they are actually needed, e.g., GPS, Bluetooth communications, background file syncing, etc. • Wi-Fi instead of telephony: saves power 5
  • 6. Understanding Operating Systems, 7e 6 (figure 16.8) This device has 1 hour, 32 minutes of battery time remaining. This display also indicates that the screen is consuming 73 percent of the device’s battery resources at a very bright setting and that the Android operating system is using 5 percent. © Cengage Learning 2014
  • 7. File Management • Linux-managed at the kernel level • User ID: the part of the operating system that is the user’s own protected mode and that allows it to manage the files it creates and executes – Each application has its own – Not shared: no other apps can read or alter the app’s files – Two apps with same User ID: data is shared • Supplementary apps – Necessary for file manipulation tasks7
  • 8. User Interface • Touch screen – Features icons that are manipulated by the user – User-selected apps that remain in place when the user swipes the screen from side-to-side – “Soft buttons” along screen bottom: allow the user to perform critical tasks, e.g., go home, go back, or view open tasks 8
  • 9. User Interface (cont’d.) 9 (figure 16.12) User-definable icons and buttons at the base of the display allow users to quickly access these functions. © Cengage Learning 2014
  • 10. Touch Screen Controls 10 (table 16.6) Seven primary gestures that users can make on their mobile devices. © Cengage Learning 2014
  • 11. Touch Screen Controls (cont’d.) 11 (table 16.6) (cont’d.) Seven primary gestures that users can make on their mobile devices. © Cengage Learning 2014
  • 12. ANDROID ARCHITECTURE The software stack is split into Four Layers:: 1- The application layer 2- The application framework 3- The libraries and runtime 4- The kernel
  • 14. LINUX KERNEL •The architecture is based on the Linux kernel. • This layer is core of android architecture. It provides service like power management, memory management, security etc. • It helps in software or hardware binding for better communication.
  • 15. LINUX KERNEL What the kernel does • The kernel has 4 jobs: 1. Memory management: Keep track of how much memory is used to store what, and where 2. Process management: Determine which processes can use the CPU, when, and for how long 3. Device drivers: Act as mediator/interpreter between the hardware and processes 4. System calls and security: Receive requests for service from the processes 15
  • 16. NATIVE LIBRARIES • Android has its own libraries, which is written in C/C++. These libraries cannot be accessed directly. With the help of application framework, we can access these libraries. There are many libraries like web libraries to access web browsers, libraries for android and video formats etc.
  • 17. Android Run Time • The Android Runtime was designed specifically for Android to meet the needs of running in an embedded environment where you have limited battery, limited memory, limited CPU.
  • 18. Android Run Time •This is in blue, meaning that it's written in the Java programming language. •The core library contains all of the collection classes, utilities, IO, all the utilities and tools that you’ve come to expected to use.
  • 19. Android Run Time (ART) What is ART- ART is software layer between applications and operating system.It provide mechanism for executing java language.ART perform two major things to achieve this: 1.Runs Android framework and Applications using hybrid model of Interpreter, JIT and profile based Ahead of time compilation(AOT). 2.Memory Management using Memory allocator and Concurrent compacting Garbage collector. 19
  • 20. Application Framework •This is all written in a Java programming language and the application framework is the toolkit that all applications use. •These applications include the ones that come with a phone like the home applications, or the phone application. •It includes applications written by Google, and it includes apps that will be written by you. •So, all apps use the same framework and the same APIs.