SlideShare a Scribd company logo
Android Programming
Introdution
What is Android?
A software platform and operating system for mobile devices
Based on the Linux kernel
Developed by the Open Handset Alliance (OHA) and later
Google
Google is the principle maintainer
Allows writing managed code in the Java / Kotlin languages
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Why Android ?
Android is open
Android is free
Reduced cost of Development
Inter App Integration
Rich Development Environment
Easy Adoption
Large developer Community support
 Java, Kotlin
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Integrated browser based on the open source WebKit engine
SQLite for relational data storage
Media support for common audio, video, and still image
formats(MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)
Dalvik Virtual Machine optimized for mobile devices.
Widgets (weather,calendar,stock market,switches to turn
on/off WiFi, GPS, Bluetooth etc)
Android Features –S/W
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Cellular networking : GSM, EDGE, 5G
LAN : Bluetooth, and Wi-Fi (hardware dependent)
Graphics Hardware Acceleration(3D graphics processing)
Camera, GPS and Compass
Touch screen and accelerometer for motion sensing
 FaceDetector
 MediaRecorder- putting voice as password
 Sensor(intimating climate change,walking, no of hours used)
Android Features – H/W
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Android vs. Competitors
7. Blackberry OS
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
7
Platform - The Android Software Stack
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
8
Android S/W Stack - Application
• Android provides a set of core applications:
 Email Client
 SMS Program
 Calendar
 Maps
 Browser
 Contacts, ect
All applications are written using the Java/kotlin
language.
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
9
Android S/W Stack – App Framework
• Most of the application framework accesses these
core libraries through the Dalvik VM, the
gateway to the Android Platform
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
10
Android S/W Stack –
App Framework (Cont)
Feature Role
View
System
Used to build an application, including lists, grids, text
boxes, buttons, and embedded web browser
Content
Provider
Enabling applications to access data from other
applications or to share their own data
Resource
Manager
Providing access to non-code resources (localized string
, graphics, and layout files)
Notification
Manager
Enabling all applications to display customer alerts in the
status bar
Activity
Manager
Managing the lifecycle of applications and providing
a common navigation backstack
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Location Manager
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Notification Manager
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Notification Manager
• How background app interact with users
• Consistent notification presentation
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
View System
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
View System
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
16
Android S/W Stack - Libraries
• Including a set of C/C++ libraries used by components
of the Android system
• Exposed to developers through the Android application
framework
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Written in C/C++ - System C Library(libc)
 Display/Graphics
Media Libraries
SQLite –RDB engine-light weight
LibWebCore–web browser engine–embeddable web
view
Libraries
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
18
Android S/W Stack - Runtime
• Core Libraries
Providing most of the functionality available in the
core libraries of the Java language
APIs
Data Structures
Utilities
File Access
Network Access
 Graphics
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
The Dalvik runtime is optimised for
mobile applications
Run multiple VMs efficiently
Each app has its own VM
Minimal memory footprint
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
20
Android S/W Stack – Runtime (Cont)
• Dalvik Virtual Machine (Cont)
Executing the Dalvik Executable (.dex) format
.dex format is optimized for minimal memory footprint.
Compilation
 Relying on the Linux Kernel for:
Threading
Low-level memory management
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Android applications are compiled to
Dalvik bytecode
Write app in Java
Compiled in Java
Transformed to Dalvik bytecode
Linux OS
Loaded into Dalvik VM
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
22
Android S/W Stack – Linux Kernel
 Relying on Linux Kernel 2.6 for core system services
 Memory and Process Management
 Network Stack
 Driver Model
 Security
• The supplied device drivers include Display, Camera, Keypad, WiFi,
Flash Memory, Audio, and IPC (interprocess communication).
 Providing an abstraction layer between the H/W and the rest of the
S/W stack
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Development requirements
• Java JDK
• Android SDK
Software development
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Android SDK
• Class Library
• Developer Tools
• Emulator and System Images
• Documentation and Sample Code
Eclipse IDE + ADT (Android Development Tools)
• Reduces Development and Testing Time
• Makes User Interface-Creation easier
• Makes Application Description Easier
Android Studio, Zamarin etc.,
Software development
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Android Application Development
Eclipse
IDE
Android
SDK
Android
Emulator
Android
Mobile
Device
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Android development
Android
Manifest
Resource
XML
Java
Source
Generated
Class
Java
Compiler
Android
Libraries
.dex
File
Dalvik
VM
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Anatomy of an Android Application
• Activity -UI
• Intent –Message Passing
• Service –Run on background
• ContentProvider –Data Sharing
Component(gallery,contacts)
• Broadcast Receivers -Receive and react
(OS-generated--Battery empty,Camera button pressed,New app installed,
Wifi connection established)
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Services
• Faceless components that run in the background
– E.g. music player, network download etc…
-code that is long-lived and runs without a UI(Media
Player)
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
ContentProviders
• Enables sharing of data across applications
– E.g. address book, photo gallery
• -an application's data to be shared with other
applications
• Provides uniform APIs for:
– querying
– delete, update and insert.
• Content is represented by URI and MIME type
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Android Building Blocks
AndroidManifest.xml
The control file-tells the system what to do with the top-level
components
Activities
An object that has a life cycle-is a chunk of code that does some
work
Views
An object that knows how to draw itself to the screen
Intents
A simple message object that represents an "intention" to do something
Notifications
A small icon that appears in the status bar(SMS messages)
Services
A body of code that runs in the background
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Development Tools
The Android SDK includes a variety of custom tools that help you
develop mobile applications on the Android platform.Three of the
most significant tools are:
1. Android Emulator -A virtual mobile device that runs on our
computer -use to design, debug, and test our applications in an
actual Android run-time environment
2. Android Development Tools Plugin -for the Eclipse IDE - adds
powerful extensions to the Eclipse integrated environment
3. Dalvik Debug Monitor Service (DDMS) -Integrated with Dalvik -
this tool let us manage processes on an emulator and assists in
debugging
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Applications
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Initial screen BrowserMap
Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
Android & iOS
Dr. M.Pyingkodi, MCA Department,
Kongu Engineering College,
Erode,Tamilnadu.

More Related Content

What's hot

Custom Android App Development – Web Animation India
Custom Android App Development – Web Animation IndiaCustom Android App Development – Web Animation India
Custom Android App Development – Web Animation India
Marion Welch
 
Android seminar report
Android seminar reportAndroid seminar report
Android seminar report
dgpune
 
Android development
Android developmentAndroid development
Android development
Raynax668
 
Android summer training report
Android summer training reportAndroid summer training report
Android summer training report
Shashendra Singh
 
My presentation on Android in my college
My presentation on Android in my collegeMy presentation on Android in my college
My presentation on Android in my college
Sneha Lata
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
Dharani Kumar Madduri
 
Mobile Application Development With Android
Mobile Application Development With AndroidMobile Application Development With Android
Mobile Application Development With Android
guest213e237
 
Project presentation (Loginradius SDK for Android)
Project presentation (Loginradius SDK for Android)Project presentation (Loginradius SDK for Android)
Project presentation (Loginradius SDK for Android)
shwetarathi Rathi
 
Introduction to Android - Mobile Portland
Introduction to Android - Mobile PortlandIntroduction to Android - Mobile Portland
Introduction to Android - Mobile Portland
sullis
 
Android Programming Seminar
Android Programming SeminarAndroid Programming Seminar
Android Programming Seminar
Nhat Nguyen
 
Android Seminar
Android SeminarAndroid Seminar
Android Seminar
Ganesh Waghmare
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guide
Mohamed_Mubarak_Ali
 
android-tutorial-for-beginner
android-tutorial-for-beginnerandroid-tutorial-for-beginner
android-tutorial-for-beginner
Ajailal Parackal
 
PPT on Android Applications
PPT on Android ApplicationsPPT on Android Applications
PPT on Android Applications
Ashish Agarwal
 
Android ppt
 Android ppt Android ppt
Android ppt
Basavaraj Amogi
 
AndroidOs
AndroidOsAndroidOs
AndroidOs
AnthiVSRengan
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
donnfelker
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guide
magicshui
 
Android Technology Presentation
Android Technology PresentationAndroid Technology Presentation
Android Technology Presentation
Vijay Shinde
 
Intro to Android Programming
Intro to Android ProgrammingIntro to Android Programming
Intro to Android Programming
Peter van der Linden
 

What's hot (20)

Custom Android App Development – Web Animation India
Custom Android App Development – Web Animation IndiaCustom Android App Development – Web Animation India
Custom Android App Development – Web Animation India
 
Android seminar report
Android seminar reportAndroid seminar report
Android seminar report
 
Android development
Android developmentAndroid development
Android development
 
Android summer training report
Android summer training reportAndroid summer training report
Android summer training report
 
My presentation on Android in my college
My presentation on Android in my collegeMy presentation on Android in my college
My presentation on Android in my college
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
 
Mobile Application Development With Android
Mobile Application Development With AndroidMobile Application Development With Android
Mobile Application Development With Android
 
Project presentation (Loginradius SDK for Android)
Project presentation (Loginradius SDK for Android)Project presentation (Loginradius SDK for Android)
Project presentation (Loginradius SDK for Android)
 
Introduction to Android - Mobile Portland
Introduction to Android - Mobile PortlandIntroduction to Android - Mobile Portland
Introduction to Android - Mobile Portland
 
Android Programming Seminar
Android Programming SeminarAndroid Programming Seminar
Android Programming Seminar
 
Android Seminar
Android SeminarAndroid Seminar
Android Seminar
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guide
 
android-tutorial-for-beginner
android-tutorial-for-beginnerandroid-tutorial-for-beginner
android-tutorial-for-beginner
 
PPT on Android Applications
PPT on Android ApplicationsPPT on Android Applications
PPT on Android Applications
 
Android ppt
 Android ppt Android ppt
Android ppt
 
AndroidOs
AndroidOsAndroidOs
AndroidOs
 
Introduction to Android Development
Introduction to Android DevelopmentIntroduction to Android Development
Introduction to Android Development
 
Android installation guide
Android installation guideAndroid installation guide
Android installation guide
 
Android Technology Presentation
Android Technology PresentationAndroid Technology Presentation
Android Technology Presentation
 
Intro to Android Programming
Intro to Android ProgrammingIntro to Android Programming
Intro to Android Programming
 

Similar to Introduction to Android Programming

Introduction to Android Programming by Dr.M.Pyingkodi-kongu engineering c...
Introduction to  Android   Programming by  Dr.M.Pyingkodi-kongu engineering c...Introduction to  Android   Programming by  Dr.M.Pyingkodi-kongu engineering c...
Introduction to Android Programming by Dr.M.Pyingkodi-kongu engineering c...
pyingkodi maran
 
Android seminar-presentation
Android seminar-presentationAndroid seminar-presentation
Android seminar-presentation
connectshilpa
 
Android
AndroidAndroid
Android
aktash12
 
Introduction to Android
Introduction to AndroidIntroduction to Android
Introduction to Android
Jindal Gohil
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
Jindal Gohil
 
cloud computing and android
cloud computing and androidcloud computing and android
cloud computing and android
Mohit Singh
 
Phonebook Directory or Address Book In Android
Phonebook Directory or Address Book In AndroidPhonebook Directory or Address Book In Android
Phonebook Directory or Address Book In Android
ABHISHEK DINKAR
 
Android Anatomy
Android  AnatomyAndroid  Anatomy
Android Anatomy
Bhavya Siddappa
 
Getting started with android
Getting started with androidGetting started with android
Getting started with android
amitgb
 
Bhavin_Resume
Bhavin_ResumeBhavin_Resume
Bhavin_Resume
bhavin patel
 
Android Technology
Android TechnologyAndroid Technology
Android Technology
Amar Shah
 
Android by Ravindra J.Mandale
Android by Ravindra J.MandaleAndroid by Ravindra J.Mandale
Android by Ravindra J.Mandale
Ravindra Mandale
 
Ch1 hello, android
Ch1 hello, androidCh1 hello, android
Ch1 hello, android
Jehad2012
 
Android Operating system
Android Operating systemAndroid Operating system
Android Operating system
Jawaher Abdulwahab Fadhil
 
Sagar Aggarwal_1
Sagar Aggarwal_1Sagar Aggarwal_1
Sagar Aggarwal_1
Sagar Aggarwal
 
1 introduction of android
1 introduction of android1 introduction of android
1 introduction of android
akila_mano
 
Resume-RDn-Detailed
Resume-RDn-DetailedResume-RDn-Detailed
Resume-RDn-Detailed
Dhayanithi Radhakrishnan
 
OS in mobile devices [Android]
OS in mobile devices [Android]OS in mobile devices [Android]
OS in mobile devices [Android]
Yatharth Aggarwal
 
2011 Artezio Mobile
2011 Artezio Mobile2011 Artezio Mobile
2011 Artezio Mobile
polatsidis
 
Naveen_Toppo
Naveen_ToppoNaveen_Toppo
Naveen_Toppo
Naveen Toppo
 

Similar to Introduction to Android Programming (20)

Introduction to Android Programming by Dr.M.Pyingkodi-kongu engineering c...
Introduction to  Android   Programming by  Dr.M.Pyingkodi-kongu engineering c...Introduction to  Android   Programming by  Dr.M.Pyingkodi-kongu engineering c...
Introduction to Android Programming by Dr.M.Pyingkodi-kongu engineering c...
 
Android seminar-presentation
Android seminar-presentationAndroid seminar-presentation
Android seminar-presentation
 
Android
AndroidAndroid
Android
 
Introduction to Android
Introduction to AndroidIntroduction to Android
Introduction to Android
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
cloud computing and android
cloud computing and androidcloud computing and android
cloud computing and android
 
Phonebook Directory or Address Book In Android
Phonebook Directory or Address Book In AndroidPhonebook Directory or Address Book In Android
Phonebook Directory or Address Book In Android
 
Android Anatomy
Android  AnatomyAndroid  Anatomy
Android Anatomy
 
Getting started with android
Getting started with androidGetting started with android
Getting started with android
 
Bhavin_Resume
Bhavin_ResumeBhavin_Resume
Bhavin_Resume
 
Android Technology
Android TechnologyAndroid Technology
Android Technology
 
Android by Ravindra J.Mandale
Android by Ravindra J.MandaleAndroid by Ravindra J.Mandale
Android by Ravindra J.Mandale
 
Ch1 hello, android
Ch1 hello, androidCh1 hello, android
Ch1 hello, android
 
Android Operating system
Android Operating systemAndroid Operating system
Android Operating system
 
Sagar Aggarwal_1
Sagar Aggarwal_1Sagar Aggarwal_1
Sagar Aggarwal_1
 
1 introduction of android
1 introduction of android1 introduction of android
1 introduction of android
 
Resume-RDn-Detailed
Resume-RDn-DetailedResume-RDn-Detailed
Resume-RDn-Detailed
 
OS in mobile devices [Android]
OS in mobile devices [Android]OS in mobile devices [Android]
OS in mobile devices [Android]
 
2011 Artezio Mobile
2011 Artezio Mobile2011 Artezio Mobile
2011 Artezio Mobile
 
Naveen_Toppo
Naveen_ToppoNaveen_Toppo
Naveen_Toppo
 

More from Pyingkodi Maran

Health Monitoring System using IoT.doc
Health Monitoring System using IoT.docHealth Monitoring System using IoT.doc
Health Monitoring System using IoT.doc
Pyingkodi Maran
 
IoT Industry Adaptation of AI.ppt
IoT Industry Adaptation of AI.pptIoT Industry Adaptation of AI.ppt
IoT Industry Adaptation of AI.ppt
Pyingkodi Maran
 
IoT_Testing.ppt
IoT_Testing.pptIoT_Testing.ppt
IoT_Testing.ppt
Pyingkodi Maran
 
Azure Devops
Azure DevopsAzure Devops
Azure Devops
Pyingkodi Maran
 
Creation of Web Portal using DURPAL
Creation of Web Portal using DURPALCreation of Web Portal using DURPAL
Creation of Web Portal using DURPAL
Pyingkodi Maran
 
AWS Relational Database Instance
AWS Relational Database InstanceAWS Relational Database Instance
AWS Relational Database Instance
Pyingkodi Maran
 
AWS S3 Buckets
AWS S3  BucketsAWS S3  Buckets
AWS S3 Buckets
Pyingkodi Maran
 
Creation of AWS Instance in Cloud Platform
Creation of AWS Instance in Cloud PlatformCreation of AWS Instance in Cloud Platform
Creation of AWS Instance in Cloud Platform
Pyingkodi Maran
 
Amazon Web Service.pdf
Amazon Web Service.pdfAmazon Web Service.pdf
Amazon Web Service.pdf
Pyingkodi Maran
 
Cloud Security
Cloud SecurityCloud Security
Cloud Security
Pyingkodi Maran
 
Cloud Computing Introduction
Cloud Computing IntroductionCloud Computing Introduction
Cloud Computing Introduction
Pyingkodi Maran
 
Supervised Machine Learning Algorithm
Supervised Machine Learning AlgorithmSupervised Machine Learning Algorithm
Supervised Machine Learning Algorithm
Pyingkodi Maran
 
Unsupervised Learning in Machine Learning
Unsupervised Learning in Machine LearningUnsupervised Learning in Machine Learning
Unsupervised Learning in Machine Learning
Pyingkodi Maran
 
Feature Engineering in Machine Learning
Feature Engineering in Machine LearningFeature Engineering in Machine Learning
Feature Engineering in Machine Learning
Pyingkodi Maran
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
Pyingkodi Maran
 
Relational Database and Relational Algebra
Relational Database and Relational AlgebraRelational Database and Relational Algebra
Relational Database and Relational Algebra
Pyingkodi Maran
 
Transaction in DBMS
Transaction in DBMSTransaction in DBMS
Transaction in DBMS
Pyingkodi Maran
 
IoT_Frameworks_.pdf
IoT_Frameworks_.pdfIoT_Frameworks_.pdf
IoT_Frameworks_.pdf
Pyingkodi Maran
 
IoT Real world Applications.pdf
IoT Real world Applications.pdfIoT Real world Applications.pdf
IoT Real world Applications.pdf
Pyingkodi Maran
 
IoT_Introduction.pdf
IoT_Introduction.pdfIoT_Introduction.pdf
IoT_Introduction.pdf
Pyingkodi Maran
 

More from Pyingkodi Maran (20)

Health Monitoring System using IoT.doc
Health Monitoring System using IoT.docHealth Monitoring System using IoT.doc
Health Monitoring System using IoT.doc
 
IoT Industry Adaptation of AI.ppt
IoT Industry Adaptation of AI.pptIoT Industry Adaptation of AI.ppt
IoT Industry Adaptation of AI.ppt
 
IoT_Testing.ppt
IoT_Testing.pptIoT_Testing.ppt
IoT_Testing.ppt
 
Azure Devops
Azure DevopsAzure Devops
Azure Devops
 
Creation of Web Portal using DURPAL
Creation of Web Portal using DURPALCreation of Web Portal using DURPAL
Creation of Web Portal using DURPAL
 
AWS Relational Database Instance
AWS Relational Database InstanceAWS Relational Database Instance
AWS Relational Database Instance
 
AWS S3 Buckets
AWS S3  BucketsAWS S3  Buckets
AWS S3 Buckets
 
Creation of AWS Instance in Cloud Platform
Creation of AWS Instance in Cloud PlatformCreation of AWS Instance in Cloud Platform
Creation of AWS Instance in Cloud Platform
 
Amazon Web Service.pdf
Amazon Web Service.pdfAmazon Web Service.pdf
Amazon Web Service.pdf
 
Cloud Security
Cloud SecurityCloud Security
Cloud Security
 
Cloud Computing Introduction
Cloud Computing IntroductionCloud Computing Introduction
Cloud Computing Introduction
 
Supervised Machine Learning Algorithm
Supervised Machine Learning AlgorithmSupervised Machine Learning Algorithm
Supervised Machine Learning Algorithm
 
Unsupervised Learning in Machine Learning
Unsupervised Learning in Machine LearningUnsupervised Learning in Machine Learning
Unsupervised Learning in Machine Learning
 
Feature Engineering in Machine Learning
Feature Engineering in Machine LearningFeature Engineering in Machine Learning
Feature Engineering in Machine Learning
 
Normalization in DBMS
Normalization in DBMSNormalization in DBMS
Normalization in DBMS
 
Relational Database and Relational Algebra
Relational Database and Relational AlgebraRelational Database and Relational Algebra
Relational Database and Relational Algebra
 
Transaction in DBMS
Transaction in DBMSTransaction in DBMS
Transaction in DBMS
 
IoT_Frameworks_.pdf
IoT_Frameworks_.pdfIoT_Frameworks_.pdf
IoT_Frameworks_.pdf
 
IoT Real world Applications.pdf
IoT Real world Applications.pdfIoT Real world Applications.pdf
IoT Real world Applications.pdf
 
IoT_Introduction.pdf
IoT_Introduction.pdfIoT_Introduction.pdf
IoT_Introduction.pdf
 

Recently uploaded

22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
KrishnaveniKrishnara1
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
nooriasukmaningtyas
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
wisnuprabawa3
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
gerogepatton
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
gestioneergodomus
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
Ratnakar Mikkili
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
NidhalKahouli2
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
gerogepatton
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
drwaing
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
nooriasukmaningtyas
 

Recently uploaded (20)

22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt22CYT12-Unit-V-E Waste and its Management.ppt
22CYT12-Unit-V-E Waste and its Management.ppt
 
Low power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniquesLow power architecture of logic gates using adiabatic techniques
Low power architecture of logic gates using adiabatic techniques
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...International Conference on NLP, Artificial Intelligence, Machine Learning an...
International Conference on NLP, Artificial Intelligence, Machine Learning an...
 
DfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributionsDfMAy 2024 - key insights and contributions
DfMAy 2024 - key insights and contributions
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
basic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdfbasic-wireline-operations-course-mahmoud-f-radwan.pdf
basic-wireline-operations-course-mahmoud-f-radwan.pdf
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
digital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdfdigital fundamental by Thomas L.floydl.pdf
digital fundamental by Thomas L.floydl.pdf
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 
A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...A review on techniques and modelling methodologies used for checking electrom...
A review on techniques and modelling methodologies used for checking electrom...
 

Introduction to Android Programming

  • 2. What is Android? A software platform and operating system for mobile devices Based on the Linux kernel Developed by the Open Handset Alliance (OHA) and later Google Google is the principle maintainer Allows writing managed code in the Java / Kotlin languages Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 3. Why Android ? Android is open Android is free Reduced cost of Development Inter App Integration Rich Development Environment Easy Adoption Large developer Community support  Java, Kotlin Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 4. Integrated browser based on the open source WebKit engine SQLite for relational data storage Media support for common audio, video, and still image formats(MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF) Dalvik Virtual Machine optimized for mobile devices. Widgets (weather,calendar,stock market,switches to turn on/off WiFi, GPS, Bluetooth etc) Android Features –S/W Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 5. Cellular networking : GSM, EDGE, 5G LAN : Bluetooth, and Wi-Fi (hardware dependent) Graphics Hardware Acceleration(3D graphics processing) Camera, GPS and Compass Touch screen and accelerometer for motion sensing  FaceDetector  MediaRecorder- putting voice as password  Sensor(intimating climate change,walking, no of hours used) Android Features – H/W Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 6. Android vs. Competitors 7. Blackberry OS Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 7. 7 Platform - The Android Software Stack Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 8. 8 Android S/W Stack - Application • Android provides a set of core applications:  Email Client  SMS Program  Calendar  Maps  Browser  Contacts, ect All applications are written using the Java/kotlin language. Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 9. 9 Android S/W Stack – App Framework • Most of the application framework accesses these core libraries through the Dalvik VM, the gateway to the Android Platform Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 10. 10 Android S/W Stack – App Framework (Cont) Feature Role View System Used to build an application, including lists, grids, text boxes, buttons, and embedded web browser Content Provider Enabling applications to access data from other applications or to share their own data Resource Manager Providing access to non-code resources (localized string , graphics, and layout files) Notification Manager Enabling all applications to display customer alerts in the status bar Activity Manager Managing the lifecycle of applications and providing a common navigation backstack Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 11. Location Manager Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 12. Notification Manager Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 13. Notification Manager • How background app interact with users • Consistent notification presentation Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 14. View System Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 15. View System Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 16. 16 Android S/W Stack - Libraries • Including a set of C/C++ libraries used by components of the Android system • Exposed to developers through the Android application framework Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 17. Written in C/C++ - System C Library(libc)  Display/Graphics Media Libraries SQLite –RDB engine-light weight LibWebCore–web browser engine–embeddable web view Libraries Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 18. 18 Android S/W Stack - Runtime • Core Libraries Providing most of the functionality available in the core libraries of the Java language APIs Data Structures Utilities File Access Network Access  Graphics Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 19. The Dalvik runtime is optimised for mobile applications Run multiple VMs efficiently Each app has its own VM Minimal memory footprint Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 20. 20 Android S/W Stack – Runtime (Cont) • Dalvik Virtual Machine (Cont) Executing the Dalvik Executable (.dex) format .dex format is optimized for minimal memory footprint. Compilation  Relying on the Linux Kernel for: Threading Low-level memory management Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 21. Android applications are compiled to Dalvik bytecode Write app in Java Compiled in Java Transformed to Dalvik bytecode Linux OS Loaded into Dalvik VM Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 22. 22 Android S/W Stack – Linux Kernel  Relying on Linux Kernel 2.6 for core system services  Memory and Process Management  Network Stack  Driver Model  Security • The supplied device drivers include Display, Camera, Keypad, WiFi, Flash Memory, Audio, and IPC (interprocess communication).  Providing an abstraction layer between the H/W and the rest of the S/W stack Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 23. Development requirements • Java JDK • Android SDK Software development Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 24. Android SDK • Class Library • Developer Tools • Emulator and System Images • Documentation and Sample Code Eclipse IDE + ADT (Android Development Tools) • Reduces Development and Testing Time • Makes User Interface-Creation easier • Makes Application Description Easier Android Studio, Zamarin etc., Software development Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 25. Android Application Development Eclipse IDE Android SDK Android Emulator Android Mobile Device Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 27. Anatomy of an Android Application • Activity -UI • Intent –Message Passing • Service –Run on background • ContentProvider –Data Sharing Component(gallery,contacts) • Broadcast Receivers -Receive and react (OS-generated--Battery empty,Camera button pressed,New app installed, Wifi connection established) Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 28. Services • Faceless components that run in the background – E.g. music player, network download etc… -code that is long-lived and runs without a UI(Media Player) Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 29. ContentProviders • Enables sharing of data across applications – E.g. address book, photo gallery • -an application's data to be shared with other applications • Provides uniform APIs for: – querying – delete, update and insert. • Content is represented by URI and MIME type Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 30. Android Building Blocks AndroidManifest.xml The control file-tells the system what to do with the top-level components Activities An object that has a life cycle-is a chunk of code that does some work Views An object that knows how to draw itself to the screen Intents A simple message object that represents an "intention" to do something Notifications A small icon that appears in the status bar(SMS messages) Services A body of code that runs in the background Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 31. Development Tools The Android SDK includes a variety of custom tools that help you develop mobile applications on the Android platform.Three of the most significant tools are: 1. Android Emulator -A virtual mobile device that runs on our computer -use to design, debug, and test our applications in an actual Android run-time environment 2. Android Development Tools Plugin -for the Eclipse IDE - adds powerful extensions to the Eclipse integrated environment 3. Dalvik Debug Monitor Service (DDMS) -Integrated with Dalvik - this tool let us manage processes on an emulator and assists in debugging Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 32. Applications Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 33. Initial screen BrowserMap Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.
  • 34. Android & iOS Dr. M.Pyingkodi, MCA Department, Kongu Engineering College, Erode,Tamilnadu.