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

What's hot

Android Introduction
Android IntroductionAndroid Introduction
Android Introduction
Sharmistha Mandal
 
How to build a Distributed Serverless Polyglot Microservices IoT Platform us...
How to build a Distributed Serverless Polyglot Microservices IoT Platform us...How to build a Distributed Serverless Polyglot Microservices IoT Platform us...
How to build a Distributed Serverless Polyglot Microservices IoT Platform us...
Animesh Singh
 
Serverless microservices
Serverless microservicesServerless microservices
Serverless microservices
Lalit Kale
 
Development QA Reports for PeopleSoft
Development QA Reports for PeopleSoftDevelopment QA Reports for PeopleSoft
Development QA Reports for PeopleSoft
Leandro Baca
 
Deploying .net application using VSTS on ACS in kubernetes
Deploying .net application using VSTS on ACS in kubernetesDeploying .net application using VSTS on ACS in kubernetes
Deploying .net application using VSTS on ACS in kubernetes
girish goudar
 
Lecture 11 active directory
Lecture 11 active directoryLecture 11 active directory
Lecture 11 active directory
Tanveer Malik
 
How i got androidified
How i got androidifiedHow i got androidified
How i got androidified
harshbarve
 
Docker Overview
Docker OverviewDocker Overview
Docker Overview
Alexander Moon
 

What's hot (8)

Android Introduction
Android IntroductionAndroid Introduction
Android Introduction
 
How to build a Distributed Serverless Polyglot Microservices IoT Platform us...
How to build a Distributed Serverless Polyglot Microservices IoT Platform us...How to build a Distributed Serverless Polyglot Microservices IoT Platform us...
How to build a Distributed Serverless Polyglot Microservices IoT Platform us...
 
Serverless microservices
Serverless microservicesServerless microservices
Serverless microservices
 
Development QA Reports for PeopleSoft
Development QA Reports for PeopleSoftDevelopment QA Reports for PeopleSoft
Development QA Reports for PeopleSoft
 
Deploying .net application using VSTS on ACS in kubernetes
Deploying .net application using VSTS on ACS in kubernetesDeploying .net application using VSTS on ACS in kubernetes
Deploying .net application using VSTS on ACS in kubernetes
 
Lecture 11 active directory
Lecture 11 active directoryLecture 11 active directory
Lecture 11 active directory
 
How i got androidified
How i got androidifiedHow i got androidified
How i got androidified
 
Docker Overview
Docker OverviewDocker Overview
Docker Overview
 

Viewers also liked

Presentation by Steve Hubbard, qubeSocial to Melbourne's dm Forum.
Presentation by Steve Hubbard, qubeSocial to Melbourne's dm Forum. Presentation by Steve Hubbard, qubeSocial to Melbourne's dm Forum.
Presentation by Steve Hubbard, qubeSocial to Melbourne's dm Forum.
Steve Hubbard
 
Birla sun life gen next fund
Birla sun life gen next fundBirla sun life gen next fund
Birla sun life gen next fund
Sujata Verma
 
Electronic grade book prez (by Alex Rivera)
Electronic grade book prez (by Alex Rivera)Electronic grade book prez (by Alex Rivera)
Electronic grade book prez (by Alex Rivera)amrivera360
 
Presentation to Melbourne Professional & Commercial (MP&C) Networking Group
Presentation to Melbourne Professional & Commercial (MP&C) Networking GroupPresentation to Melbourne Professional & Commercial (MP&C) Networking Group
Presentation to Melbourne Professional & Commercial (MP&C) Networking Group
Steve Hubbard
 
Jacques botha cv web browser version
Jacques botha cv web browser versionJacques botha cv web browser version
Jacques botha cv web browser version
Jacques Botha
 
Sustainability Report 2014
Sustainability Report 2014Sustainability Report 2014
Sustainability Report 2014
MMG Limited
 
Jacquesbothacvwebbrowserversion 130722094131-phpapp01
Jacquesbothacvwebbrowserversion 130722094131-phpapp01Jacquesbothacvwebbrowserversion 130722094131-phpapp01
Jacquesbothacvwebbrowserversion 130722094131-phpapp01
Jacques Botha
 
Impak Puasa Terhadap Muslim
Impak Puasa Terhadap MuslimImpak Puasa Terhadap Muslim
Impak Puasa Terhadap Muslim
Anis Nabilah
 
130906 bni w2 e tmn marketing presentation
130906 bni   w2 e tmn marketing presentation130906 bni   w2 e tmn marketing presentation
130906 bni w2 e tmn marketing presentationSteve Hubbard
 
Santhosh tuppad - A journey that is fascinating and will be more fascinating ...
Santhosh tuppad - A journey that is fascinating and will be more fascinating ...Santhosh tuppad - A journey that is fascinating and will be more fascinating ...
Santhosh tuppad - A journey that is fascinating and will be more fascinating ...
Santhosh Tuppad
 
Guia bpa-quinua
Guia bpa-quinuaGuia bpa-quinua
SHIFT LOG BOOK
SHIFT LOG BOOKSHIFT LOG BOOK
SHIFT LOG BOOK
Atul Mishra
 
Capital Markets 2015 - Uruguay - Latin Lawyer Reference
Capital Markets 2015 - Uruguay - Latin Lawyer ReferenceCapital Markets 2015 - Uruguay - Latin Lawyer Reference
Capital Markets 2015 - Uruguay - Latin Lawyer Reference
Olivera Abogados
 
Santhosh Tuppad - Profile - Entrepreneur - Software Tester - Ethical Hacker -...
Santhosh Tuppad - Profile - Entrepreneur - Software Tester - Ethical Hacker -...Santhosh Tuppad - Profile - Entrepreneur - Software Tester - Ethical Hacker -...
Santhosh Tuppad - Profile - Entrepreneur - Software Tester - Ethical Hacker -...
Santhosh Tuppad
 
Ll reference capital markets 2013 - uruguay
Ll reference   capital markets 2013 - uruguayLl reference   capital markets 2013 - uruguay
Ll reference capital markets 2013 - uruguayOlivera Abogados
 
Presentation investment and trading with uruguay
Presentation investment and trading with uruguayPresentation investment and trading with uruguay
Presentation investment and trading with uruguayOlivera Abogados
 
Manual _handling
Manual _handlingManual _handling
Manual _handling
Azmeel Contracting Company
 

Viewers also liked (20)

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

Similar to Android Technology

Android fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersAndroid fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersBoom Shukla
 
Android 1-intro n architecture
Android 1-intro n architectureAndroid 1-intro n architecture
Android 1-intro n architecture
Dilip Singh
 
Android primer
Android primerAndroid primer
Android primer
intellisenseit
 
Android Workshop_1
Android Workshop_1Android Workshop_1
Android Workshop_1
Purvik Rana
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App Development
Mike Kvintus
 
Android Penetration Testing - Day 1
Android Penetration Testing - Day 1Android Penetration Testing - Day 1
Android Penetration Testing - Day 1
Mohammed Adam
 
Android technology
Android technologyAndroid technology
Android technologyDhruv Modh
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A Nutshell
Ted Chien
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
Dharani Kumar Madduri
 
Android Development
Android DevelopmentAndroid Development
Android Development
mclougm4
 
Android Anatomy
Android  AnatomyAndroid  Anatomy
Android Anatomy
Bhavya Siddappa
 
Introduction to Android (before 2015)
Introduction to Android (before 2015)Introduction to Android (before 2015)
Introduction to Android (before 2015)
Chien-Ming Chou
 
01 what is android
01 what is android01 what is android
01 what is android
C.o. Nieto
 
Android Introduction by Kajal
Android Introduction by KajalAndroid Introduction by Kajal
Android Introduction by Kajal
Kajal Kucheriya Jain
 
Android overview
Android overviewAndroid overview
Android overview
Has Taiar
 
Android Architecture design programming with java
Android Architecture design programming with javaAndroid Architecture design programming with java
Android Architecture design programming with java
ssuser471dfb
 
Introduction to android basics
Introduction to android basicsIntroduction to android basics
Introduction to android basics
Hasam Panezai
 
Android architecture
Android architectureAndroid architecture
Android architecture
Deepa Rahul
 
Introduction to Android Development.pptx
Introduction to Android Development.pptxIntroduction to Android Development.pptx
Introduction to Android Development.pptx
asmeerana605
 

Similar to Android Technology (20)

Android fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersAndroid fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginners
 
Android 1-intro n architecture
Android 1-intro n architectureAndroid 1-intro n architecture
Android 1-intro n architecture
 
Android primer
Android primerAndroid primer
Android primer
 
Android Workshop_1
Android Workshop_1Android Workshop_1
Android Workshop_1
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App Development
 
Android Penetration Testing - Day 1
Android Penetration Testing - Day 1Android Penetration Testing - Day 1
Android Penetration Testing - Day 1
 
Android technology
Android technologyAndroid technology
Android technology
 
Android In A Nutshell
Android In A NutshellAndroid In A Nutshell
Android In A Nutshell
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
 
Android Development
Android DevelopmentAndroid Development
Android Development
 
Android Anatomy
Android  AnatomyAndroid  Anatomy
Android Anatomy
 
Introduction to Android (before 2015)
Introduction to Android (before 2015)Introduction to Android (before 2015)
Introduction to Android (before 2015)
 
01 what is android
01 what is android01 what is android
01 what is android
 
Android Introduction by Kajal
Android Introduction by KajalAndroid Introduction by Kajal
Android Introduction by Kajal
 
My androidpresentation
My androidpresentationMy androidpresentation
My androidpresentation
 
Android overview
Android overviewAndroid overview
Android overview
 
Android Architecture design programming with java
Android Architecture design programming with javaAndroid Architecture design programming with java
Android Architecture design programming with java
 
Introduction to android basics
Introduction to android basicsIntroduction to android basics
Introduction to android basics
 
Android architecture
Android architectureAndroid architecture
Android architecture
 
Introduction to Android Development.pptx
Introduction to Android Development.pptxIntroduction to Android Development.pptx
Introduction to Android Development.pptx
 

Recently uploaded

2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
deeptiverma2406
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
DhatriParmar
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
thanhdowork
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
chanes7
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 

Recently uploaded (20)

2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
Best Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDABest Digital Marketing Institute In NOIDA
Best Digital Marketing Institute In NOIDA
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptxThe Accursed House by Émile Gaboriau.pptx
The Accursed House by Émile Gaboriau.pptx
 
A Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptxA Survey of Techniques for Maximizing LLM Performance.pptx
A Survey of Techniques for Maximizing LLM Performance.pptx
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Digital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion DesignsDigital Artifact 2 - Investigating Pavilion Designs
Digital Artifact 2 - Investigating Pavilion Designs
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 

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); } } );