SlideShare a Scribd company logo
Application Development for Android

Presented by:
Anshul Sharma
101225
What is Android?
•
•
•
•

Google’s mobile operating system
A free, open source mobile platform
A Linux-based, multiprocess, multithreaded OS
It’s not even limited to phones - you could build
a DVR, a handheld GPS, an MP3 player, etc.
• Offers an SDK and NDK
• Latest SDK version is 4.0/4.1 (Jellybean)
Software development
• Android SDK includes a comprehensive set of
development tools.
• The SDK is downloadable on the android
developer website.
• The officially supported integrated
development environment (IDE) is Eclipse
(currently 3.5 or 3.6) using the Android
Development Tools (ADT) Plugin
Architecture Overview
Linux Kernel
✓ Security model: The Linux kernel handles security between the
application and the system.
✓ Memory management: The kernel handles memory management for
you, leaving you free to develop your app.
✓ Process management: The Linux kernel manages processes
well, allocating resources to processes as they need them.
✓ Network stack: The Linux kernel also handles network communication.
✓ Driver model: The goal of Linux is to ensure that everything works.
Hardware manufacturers can build their drivers into the Linux build
Native Libraries
✓ Shared

libraries all written in C or C++
✓ Compiled for the particular hardware
architecture used by the phone
✓ Preinstalled by the phone vendor
✓ Can be developed using NDK
Android Runtime
✓ Dalvik

VM

– Google’s implementation of Java
– Optimized for mobile devices
Every Android application runs in its own process, with its
own instance of the Dalvik virtual machine. Dalvik has
been written so that a device can run multiple VMs
efficiently.
The Dalvik VM executes files in the Dalvik Executable (.dex)
format which is optimized for minimal memory footprint.
Application framework
✓ Activity manager: Manages the activity life cycle.
✓ Telephony manager: Provides access to telephony services as

well as some subscriber information, such as phone numbers.
✓ View system: Handles the views and layouts that make up
your user interface (UI).
✓ Location manager: Finds out the device’s geographic location.
Application Lifecycle
Building Blocks
✓ Activities

: User Interface
✓ Intent: A mechanism for describing a specific
action
✓ Service: A task that runs in the background
without user interaction
✓ Content providers: is a set of data wrapped up
in a custom API to read and write it
Activities
✓ An

activity represents a single screen with a
user interface.
✓ An activity is implemented as a subclass of
Activity
Activity Lifecycle
Intents
✓ Activities and services — are

activated through messages, called

intents.
✓ Intent object, is a data structure holding a description of an
operation to be performed.
Implicit intents
Explicit intents

Intent intent1 = new Intent(v.getContext(), thirdscreenn.class);
startActivity(intent1);
Services
✓ A service is a component that runs in the background to

perform long-running operations or to perform work for
remote processes.
✓ For example, a service might play music in the background
while the user is in a different application.
✓ A service is implemented as a subclass of Service.
✓ A service does not provide a user interface.
Content providers
✓ A content provider manages a shared set of application data.
✓ You can store the data in the file system, a SQLite database, on

the web, or any other persistent storage location your
application can access.
✓ Through the content provider, other applications can query or
even modify the data (if the content provider allows it).
✓ A content provider is implemented as a subclass of
ContentProvider and must implement a standard set of APIs
that enable other applications to perform transactions
The AndroidManifest.xml File
✓ Every application must have an AndroidManifest.xml file.
✓ It names the Java package for the application. The package

name serves as a unique identifier for the application.
✓ It describes the components of the application — the
activities, services, broadcast receivers, and content providers
that the application is composed of.
✓ It determines which processes will host application
components.
✓ It declares the minimum level of the Android API that the
application requires.
AVD (Android Virtual Device)
• An Android Virtual Device (AVD) is an emulator configuration
that lets you model an actual device by defining hardware and
software options to be emulated by the Android Emulator.
Application Structure
USER INTERFACE
Layouts
•
•
•
•
•

Linear Layout
Table Layout
Relative Layout
Absolute Layout
Frame Layout
Views
• Views are what your users will see and
interact with
Views (cont’d)
Views (cont’d)
Load the XML Resource
Listeners
✓ Tell Android which object to callback when the user touches or clicks
the view
✓ Use setOnClickListener() method that needs to Be passed an object
that implements the OnClickListener Java interface
✓ Set android:onClick property with the method name that handles the
click action

button.setOnClickListener(new OnClickListener()
{
public void onClick(View v) {
// TODO Auto-generated method stub
Intent j = new Intent(v.getContext(),mediaplayer.class);
j.putExtra(mediaconstant.MEDIA_MODE, mediaconstant.MEDIA_PAUSE);
startService(j);
}
} );

More Related Content

PPTX
Android- Introduction for Beginners
PPTX
Android Application Fundamentals
PPTX
Duo World Presentation
PDF
Mordernizing Traditional Applications. An Introduction to Containerization
PPTX
Android System Architecture And  Pen-testing of Android applications
PPTX
Kubernetes 101
PPTX
Data for all: Empowering teams with scalable Shiny applications @ useR 2019
PPTX
Introduction to android
Android- Introduction for Beginners
Android Application Fundamentals
Duo World Presentation
Mordernizing Traditional Applications. An Introduction to Containerization
Android System Architecture And  Pen-testing of Android applications
Kubernetes 101
Data for all: Empowering teams with scalable Shiny applications @ useR 2019
Introduction to android

What's hot (8)

PPSX
Android Introduction
PDF
How to build a Distributed Serverless Polyglot Microservices IoT Platform us...
PPTX
Serverless microservices
PPTX
Development QA Reports for PeopleSoft
PPTX
Deploying .net application using VSTS on ACS in kubernetes
PDF
Lecture 11 active directory
PPTX
How i got androidified
PPTX
Docker Overview
Android Introduction
How to build a Distributed Serverless Polyglot Microservices IoT Platform us...
Serverless microservices
Development QA Reports for PeopleSoft
Deploying .net application using VSTS on ACS in kubernetes
Lecture 11 active directory
How i got androidified
Docker Overview
Ad

Viewers also liked (20)

DOCX
PPTX
Presentation by Steve Hubbard, qubeSocial to Melbourne's dm Forum.
PPTX
Birla sun life gen next fund
PPTX
Electronic grade book prez (by Alex Rivera)
PPTX
Indian Economy
PPTX
Presentation to Melbourne Professional & Commercial (MP&C) Networking Group
PPTX
Jacques botha cv web browser version
PDF
Sustainability Report 2014
PPTX
Jacquesbothacvwebbrowserversion 130722094131-phpapp01
DOCX
Impak Puasa Terhadap Muslim
PPTX
130906 bni w2 e tmn marketing presentation
PDF
Santhosh tuppad - A journey that is fascinating and will be more fascinating ...
PPTX
My biography
PDF
PPTX
SHIFT LOG BOOK
PDF
Capital Markets 2015 - Uruguay - Latin Lawyer Reference
PDF
Santhosh Tuppad - Profile - Entrepreneur - Software Tester - Ethical Hacker -...
PDF
Ll reference capital markets 2013 - uruguay
PDF
Presentation investment and trading with uruguay
PDF
Manual _handling
Presentation by Steve Hubbard, qubeSocial to Melbourne's dm Forum.
Birla sun life gen next fund
Electronic grade book prez (by Alex Rivera)
Indian Economy
Presentation to Melbourne Professional & Commercial (MP&C) Networking Group
Jacques botha cv web browser version
Sustainability Report 2014
Jacquesbothacvwebbrowserversion 130722094131-phpapp01
Impak Puasa Terhadap Muslim
130906 bni w2 e tmn marketing presentation
Santhosh tuppad - A journey that is fascinating and will be more fascinating ...
My biography
SHIFT LOG BOOK
Capital Markets 2015 - Uruguay - Latin Lawyer Reference
Santhosh Tuppad - Profile - Entrepreneur - Software Tester - Ethical Hacker -...
Ll reference capital markets 2013 - uruguay
Presentation investment and trading with uruguay
Manual _handling
Ad

Similar to Android Technology (20)

PDF
Android fundamentals and tutorial for beginners
PPTX
Android 1-intro n architecture
PPT
Android primer
PDF
Android Workshop_1
ODP
Intro To Android App Development
PPTX
Android Penetration Testing - Day 1
PPTX
mobile application using flutter and android studio
PPT
UPDATED Application fundamentals lec 1 &2.ppt
PPT
Android technology
PPT
Android In A Nutshell
PPT
PPT Companion to Android
PDF
Android Development
PPT
Android Anatomy
PPTX
Introduction to Android (before 2015)
PDF
01 what is android
PDF
Android Introduction by Kajal
PPT
My androidpresentation
PPT
Android overview
PPTX
Android Architecture design programming with java
PPTX
Unit 1 to android Introduction to Android.pptx
Android fundamentals and tutorial for beginners
Android 1-intro n architecture
Android primer
Android Workshop_1
Intro To Android App Development
Android Penetration Testing - Day 1
mobile application using flutter and android studio
UPDATED Application fundamentals lec 1 &2.ppt
Android technology
Android In A Nutshell
PPT Companion to Android
Android Development
Android Anatomy
Introduction to Android (before 2015)
01 what is android
Android Introduction by Kajal
My androidpresentation
Android overview
Android Architecture design programming with java
Unit 1 to android Introduction to Android.pptx

Recently uploaded (20)

PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Complications of Minimal Access Surgery at WLH
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
RMMM.pdf make it easy to upload and study
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PPTX
Cell Structure & Organelles in detailed.
PPTX
Cell Types and Its function , kingdom of life
PPTX
Week 4 Term 3 Study Techniques revisited.pptx
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Complications of Minimal Access Surgery at WLH
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
TR - Agricultural Crops Production NC III.pdf
01-Introduction-to-Information-Management.pdf
Pre independence Education in Inndia.pdf
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
RMMM.pdf make it easy to upload and study
2.FourierTransform-ShortQuestionswithAnswers.pdf
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Cell Structure & Organelles in detailed.
Cell Types and Its function , kingdom of life
Week 4 Term 3 Study Techniques revisited.pptx
VCE English Exam - Section C Student Revision Booklet
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Microbial diseases, their pathogenesis and prophylaxis
Final Presentation General Medicine 03-08-2024.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf

Android Technology

  • 1. Application Development for Android Presented by: Anshul Sharma 101225
  • 2. What is Android? • • • • Google’s mobile operating system A free, open source mobile platform A Linux-based, multiprocess, multithreaded OS It’s not even limited to phones - you could build a DVR, a handheld GPS, an MP3 player, etc. • Offers an SDK and NDK • Latest SDK version is 4.0/4.1 (Jellybean)
  • 3. Software development • Android SDK includes a comprehensive set of development tools. • The SDK is downloadable on the android developer website. • The officially supported integrated development environment (IDE) is Eclipse (currently 3.5 or 3.6) using the Android Development Tools (ADT) Plugin
  • 5. Linux Kernel ✓ Security model: The Linux kernel handles security between the application and the system. ✓ Memory management: The kernel handles memory management for you, leaving you free to develop your app. ✓ Process management: The Linux kernel manages processes well, allocating resources to processes as they need them. ✓ Network stack: The Linux kernel also handles network communication. ✓ Driver model: The goal of Linux is to ensure that everything works. Hardware manufacturers can build their drivers into the Linux build
  • 6. Native Libraries ✓ Shared libraries all written in C or C++ ✓ Compiled for the particular hardware architecture used by the phone ✓ Preinstalled by the phone vendor ✓ Can be developed using NDK
  • 7. Android Runtime ✓ Dalvik VM – Google’s implementation of Java – Optimized for mobile devices Every Android application runs in its own process, with its own instance of the Dalvik virtual machine. Dalvik has been written so that a device can run multiple VMs efficiently. The Dalvik VM executes files in the Dalvik Executable (.dex) format which is optimized for minimal memory footprint.
  • 8. Application framework ✓ Activity manager: Manages the activity life cycle. ✓ Telephony manager: Provides access to telephony services as well as some subscriber information, such as phone numbers. ✓ View system: Handles the views and layouts that make up your user interface (UI). ✓ Location manager: Finds out the device’s geographic location.
  • 10. Building Blocks ✓ Activities : User Interface ✓ Intent: A mechanism for describing a specific action ✓ Service: A task that runs in the background without user interaction ✓ Content providers: is a set of data wrapped up in a custom API to read and write it
  • 11. Activities ✓ An activity represents a single screen with a user interface. ✓ An activity is implemented as a subclass of Activity
  • 13. Intents ✓ Activities and services — are activated through messages, called intents. ✓ Intent object, is a data structure holding a description of an operation to be performed. Implicit intents Explicit intents Intent intent1 = new Intent(v.getContext(), thirdscreenn.class); startActivity(intent1);
  • 14. Services ✓ A service is a component that runs in the background to perform long-running operations or to perform work for remote processes. ✓ For example, a service might play music in the background while the user is in a different application. ✓ A service is implemented as a subclass of Service. ✓ A service does not provide a user interface.
  • 15. Content providers ✓ A content provider manages a shared set of application data. ✓ You can store the data in the file system, a SQLite database, on the web, or any other persistent storage location your application can access. ✓ Through the content provider, other applications can query or even modify the data (if the content provider allows it). ✓ A content provider is implemented as a subclass of ContentProvider and must implement a standard set of APIs that enable other applications to perform transactions
  • 16. The AndroidManifest.xml File ✓ Every application must have an AndroidManifest.xml file. ✓ It names the Java package for the application. The package name serves as a unique identifier for the application. ✓ It describes the components of the application — the activities, services, broadcast receivers, and content providers that the application is composed of. ✓ It determines which processes will host application components. ✓ It declares the minimum level of the Android API that the application requires.
  • 17. AVD (Android Virtual Device) • An Android Virtual Device (AVD) is an emulator configuration that lets you model an actual device by defining hardware and software options to be emulated by the Android Emulator.
  • 21. Views • Views are what your users will see and interact with
  • 24. Load the XML Resource
  • 25. Listeners ✓ Tell Android which object to callback when the user touches or clicks the view ✓ Use setOnClickListener() method that needs to Be passed an object that implements the OnClickListener Java interface ✓ Set android:onClick property with the method name that handles the click action button.setOnClickListener(new OnClickListener() { public void onClick(View v) { // TODO Auto-generated method stub Intent j = new Intent(v.getContext(),mediaplayer.class); j.putExtra(mediaconstant.MEDIA_MODE, mediaconstant.MEDIA_PAUSE); startService(j); } } );