SlideShare una empresa de Scribd logo
1 de 27
DEVELOPMENT OF
ANDROID-A journey Of
TECH
-Tripti Tiwari
Open Handset Alliance
Google and 33 other companies announced the formation of
the Open Handset Alliance on November 5, 2007.

This alliance shares a common goal of innovation on mobile
devices.
Providing developers a new level of openness that enables
them to work more collaboratively.
What is Android?
•

•

•

Android is a software stack for mobile devices that includes an
operating system, middleware and key applications. The
Android SDK provides the tools and APIs necessary to begin
developing applications on the Android platform using the Java
programming language.
Android (robot), designed to resemble a human
Or
An android is a robot or synthetic organism designed to look
and act like a human, and with a body having a flesh-like
resemblance.
Features Android

Application framework enabling reuse and replacement of
components
Dalvik virtual machine optimized for mobile devices
Integrated browser based on the open source WebKit engine
Optimized graphics powered by a custom 2D graphics library); 3D

graphics based on the OpenGL (Open Graphics Library ES 1.0
specification (hardware acceleration optional)
SQLite for structured data storage
Media support for common audio, video, and still image formats
(MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF)
GSM Telephony (hardware dependent)
Bluetooth, EDGE(Enhanced Data rates for GSM Evolution), 3G, and
WiFi (hardware dependent)
Camera, GPS, compass, and accelerometer (hardware dependent)
Rich development environment including a device emulator, tools
for debugging, memory and performance profiling, and a plugin for
the Eclipse IDE
Android Architecture
Application Framework
Developers are free to take advantage of the device hardware,
access location information, run background services, set
alarms, add notifications to the status bar, and much, much
more.
Developers have full access to the same framework APIs used
by the core applications. The application architecture is
designed to simplify the reuse of components; any application
can publish its capabilities and any other application may then
make use of those capabilities (subject to security constraints
enforced by the framework).
Underlying all applications is a set of
services and systems, including:

A rich and extensible set of Views that can be used to build an

application, including lists, grids, text boxes, buttons, and even an
embeddable web browser
Content Providers that enable applications to access data from
other applications (such as Contacts), or to share their own data
A Resource Manager, providing access to non-code resources such
as localized strings, graphics, and layout files
A Notification Manager that enables all applications to display
custom alerts in the status bar
An Activity Manager that manages the lifecycle of applications and
provides a common navigation backstack
Libraries
•
•
•
•
•
•
•
•

System C library
Media Libraries
Surface Manager
LibWebCore
SGL
3D libraries
FreeType
SQLite
Android Runtime
•

•

Also sitting on top of the kernel is the Android runtime,
including the Dalvik virtual machine and the core Java
libraries.

The Dalvik VM is Google’s implementation of Java, optimized
for mobile devices. All the code you write for Android will be
written in Java and
run within the VM.
Dalvik Virtual Machine
Dalvik is a virtual machine (VM) designed and written by Dan
Bornstein at Google. Your code gets compiled into machineindependent instructions called
bytecodes, which are then
executed by the Dalvik VM on the mobile device.
Although the bytecode formats are a little different, Dalvik is
essentially a Java virtual machine optimized for low memory
requirements. It allows multiple VM instances to run at once and
takes advantage of the underlying operating system (Linux) for
security and process isolation.
Bornstein named Dalvik after a fishing village in Iceland where
some of his ancestors lived.
Differences to a normal JavaVM

JavaVM’s one can find on almost any desktop computer
nowadays are Stack-based Virtual Machines (VM).The
DalvikVM on the other hand is register based, because on
mobile- processors are optimized for register-based
execution .
Register-based VMs allow faster execution .
Linux Kernal
• Android relies on Linux version 2.6 for core system
services such as security, memory management,
process management, network stack, and driver model.
The kernel also acts as an abstraction layer between the
hardware and the rest of the software stack.
Android Service Lifecycle
Anatomy of an Android Application
Activities

• As mentioned, Activities are classes that provide an
interface. An Activity is given a window in which to add
User Interface to. Therefore, creating multi-screen
applications involves creating multiple Activities and
transitioning between them.

• The Activity class inherits from the abstract Context class.
Context

Context is the closest Android gets to a reference to the current
application and provides a mechanism for accessing the
Android system. A Context is needed to perform many
operations in Android such as:

•
•
•
•

Accessing Android services
Accessing preferences
Creating views
Accessing Device Resources
Intents

• Intents are used throughout Android to make things
happen by sending messages. Intents are most
commonly used within applications to launch Activities.
To launch a new Activity, we create a new Intent, set the
Context and the Activity class to launch and then tell the
OS to handle the Intent, which launches the Activity.
loosely coupled applications
•
•

Intents are a powerful concept as they allow the creation of
loosely coupled applications. Intents can be used to
communicate between any installed application component on
the device.
An Intent object can contain information for the receiving
component. For example if your application calls via an Intent a
browser it may send the URL to the browser component. An
Intent also contain information for the Android system so that
the Android system can determine which component should
handle the request.
AndroidManifest.xml

Every Android application needs to include a file called
AndroidManifest.xml. This file contains information about the
application such as:

•
•
•

Component Registration - The components that make up the
app, including registration of Activities and Intents.
Required Permissions - The permissions the app requires.

OS Version Compatibility - The minimum Android API level
the application supports.
Service

• A Service is code that is long-lived and runs without a UI.
A good example of this is a media player playing songs
from a play list.
Content Provider

• Applications can store their data in files, a SQLite
database, preferences or any other mechanism that
makes sense. A content provider, however, is useful if you
want your application's data to be shared with other
applications. A content provider is a class that
implements a standard set of methods to let other
applications store and retrieve the type of data that is
handled by that content provider.
Android- Introduction for Beginners

Más contenido relacionado

La actualidad más candente

La actualidad más candente (20)

Android Architecture
Android ArchitectureAndroid Architecture
Android Architecture
 
Android Application Fundamentals
Android Application FundamentalsAndroid Application Fundamentals
Android Application Fundamentals
 
01 03 - introduction to android
01  03 - introduction to android01  03 - introduction to android
01 03 - introduction to android
 
My androidpresentation
My androidpresentationMy androidpresentation
My androidpresentation
 
Android Technology
Android TechnologyAndroid Technology
Android Technology
 
Android understanding
Android understandingAndroid understanding
Android understanding
 
Android architecture
Android architectureAndroid architecture
Android architecture
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Android Workshop_1
Android Workshop_1Android Workshop_1
Android Workshop_1
 
Andriod_Intro
Andriod_IntroAndriod_Intro
Andriod_Intro
 
Android Anatomy
Android  AnatomyAndroid  Anatomy
Android Anatomy
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to android
 
Anatomy of android aplication
Anatomy of android aplicationAnatomy of android aplication
Anatomy of android aplication
 
Android Handheld Systems
Android Handheld SystemsAndroid Handheld Systems
Android Handheld Systems
 
Android software stack
Android software stackAndroid software stack
Android software stack
 
Android Seminar
Android SeminarAndroid Seminar
Android Seminar
 
Android application development for TresmaxAsia
Android application development for TresmaxAsiaAndroid application development for TresmaxAsia
Android application development for TresmaxAsia
 
Android Training - Part 2
Android Training - Part 2Android Training - Part 2
Android Training - Part 2
 
01 02 - introduction - adroid stack
01  02 - introduction - adroid stack01  02 - introduction - adroid stack
01 02 - introduction - adroid stack
 
Android platform overview
Android platform overviewAndroid platform overview
Android platform overview
 

Similar a Android- Introduction for Beginners

Android fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersAndroid fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersBoom Shukla
 
01 what is android
01 what is android01 what is android
01 what is androidC.o. Nieto
 
Android technology
Android technologyAndroid technology
Android technologyDhruv Modh
 
Wifi Direct Based Chat And File Transfer Android Application
Wifi Direct Based Chat And File Transfer Android ApplicationWifi Direct Based Chat And File Transfer Android Application
Wifi Direct Based Chat And File Transfer Android ApplicationNitin Bhasin
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App DevelopmentMike Kvintus
 
architecture of android.pptx
architecture of android.pptxarchitecture of android.pptx
architecture of android.pptxallurestore
 
Android overview
Android overviewAndroid overview
Android overviewHas Taiar
 
Android Penetration Testing - Day 1
Android Penetration Testing - Day 1Android Penetration Testing - Day 1
Android Penetration Testing - Day 1Mohammed Adam
 
Ch1 hello, android
Ch1 hello, androidCh1 hello, android
Ch1 hello, androidJehad2012
 
Presentation for Android OS
Presentation for Android OSPresentation for Android OS
Presentation for Android OSMukul Cool
 
Introduction to Android
Introduction to AndroidIntroduction to Android
Introduction to AndroidJindal Gohil
 
Introduction to android
Introduction to androidIntroduction to android
Introduction to androidJindal Gohil
 
Android : Architecture & Components
Android : Architecture & ComponentsAndroid : Architecture & Components
Android : Architecture & ComponentsAkash Bisariya
 

Similar a Android- Introduction for Beginners (20)

Android fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginnersAndroid fundamentals and tutorial for beginners
Android fundamentals and tutorial for beginners
 
01 what is android
01 what is android01 what is android
01 what is android
 
Android technology
Android technologyAndroid technology
Android technology
 
Wifi Direct Based Chat And File Transfer Android Application
Wifi Direct Based Chat And File Transfer Android ApplicationWifi Direct Based Chat And File Transfer Android Application
Wifi Direct Based Chat And File Transfer Android Application
 
Android Introduction by Kajal
Android Introduction by KajalAndroid Introduction by Kajal
Android Introduction by Kajal
 
Cc4201519521
Cc4201519521Cc4201519521
Cc4201519521
 
Intro To Android App Development
Intro To Android App DevelopmentIntro To Android App Development
Intro To Android App Development
 
Android
AndroidAndroid
Android
 
architecture of android.pptx
architecture of android.pptxarchitecture of android.pptx
architecture of android.pptx
 
Android overview
Android overviewAndroid overview
Android overview
 
Android Penetration Testing - Day 1
Android Penetration Testing - Day 1Android Penetration Testing - Day 1
Android Penetration Testing - Day 1
 
Ch1 hello, android
Ch1 hello, androidCh1 hello, android
Ch1 hello, android
 
Presentation for Android OS
Presentation for Android OSPresentation for Android OS
Presentation for Android OS
 
document
documentdocument
document
 
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
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
 
Android : Architecture & Components
Android : Architecture & ComponentsAndroid : Architecture & Components
Android : Architecture & Components
 
Android overview
Android overviewAndroid overview
Android overview
 

Último

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024The Digital Insurer
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024The Digital Insurer
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessPixlogix Infotech
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 

Último (20)

08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024Finology Group – Insurtech Innovation Award 2024
Finology Group – Insurtech Innovation Award 2024
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 

Android- Introduction for Beginners

  • 1. DEVELOPMENT OF ANDROID-A journey Of TECH -Tripti Tiwari
  • 2.
  • 3. Open Handset Alliance Google and 33 other companies announced the formation of the Open Handset Alliance on November 5, 2007. This alliance shares a common goal of innovation on mobile devices. Providing developers a new level of openness that enables them to work more collaboratively.
  • 4. What is Android? • • • Android is a software stack for mobile devices that includes an operating system, middleware and key applications. The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language. Android (robot), designed to resemble a human Or An android is a robot or synthetic organism designed to look and act like a human, and with a body having a flesh-like resemblance.
  • 5. Features Android Application framework enabling reuse and replacement of components Dalvik virtual machine optimized for mobile devices Integrated browser based on the open source WebKit engine Optimized graphics powered by a custom 2D graphics library); 3D graphics based on the OpenGL (Open Graphics Library ES 1.0 specification (hardware acceleration optional) SQLite for structured data storage Media support for common audio, video, and still image formats (MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, GIF) GSM Telephony (hardware dependent) Bluetooth, EDGE(Enhanced Data rates for GSM Evolution), 3G, and WiFi (hardware dependent) Camera, GPS, compass, and accelerometer (hardware dependent) Rich development environment including a device emulator, tools for debugging, memory and performance profiling, and a plugin for the Eclipse IDE
  • 7. Application Framework Developers are free to take advantage of the device hardware, access location information, run background services, set alarms, add notifications to the status bar, and much, much more. Developers have full access to the same framework APIs used by the core applications. The application architecture is designed to simplify the reuse of components; any application can publish its capabilities and any other application may then make use of those capabilities (subject to security constraints enforced by the framework).
  • 8. Underlying all applications is a set of services and systems, including: A rich and extensible set of Views that can be used to build an application, including lists, grids, text boxes, buttons, and even an embeddable web browser Content Providers that enable applications to access data from other applications (such as Contacts), or to share their own data A Resource Manager, providing access to non-code resources such as localized strings, graphics, and layout files A Notification Manager that enables all applications to display custom alerts in the status bar An Activity Manager that manages the lifecycle of applications and provides a common navigation backstack
  • 9. Libraries • • • • • • • • System C library Media Libraries Surface Manager LibWebCore SGL 3D libraries FreeType SQLite
  • 10. Android Runtime • • Also sitting on top of the kernel is the Android runtime, including the Dalvik virtual machine and the core Java libraries. The Dalvik VM is Google’s implementation of Java, optimized for mobile devices. All the code you write for Android will be written in Java and run within the VM.
  • 11.
  • 12.
  • 13. Dalvik Virtual Machine Dalvik is a virtual machine (VM) designed and written by Dan Bornstein at Google. Your code gets compiled into machineindependent instructions called bytecodes, which are then executed by the Dalvik VM on the mobile device. Although the bytecode formats are a little different, Dalvik is essentially a Java virtual machine optimized for low memory requirements. It allows multiple VM instances to run at once and takes advantage of the underlying operating system (Linux) for security and process isolation. Bornstein named Dalvik after a fishing village in Iceland where some of his ancestors lived.
  • 14. Differences to a normal JavaVM JavaVM’s one can find on almost any desktop computer nowadays are Stack-based Virtual Machines (VM).The DalvikVM on the other hand is register based, because on mobile- processors are optimized for register-based execution . Register-based VMs allow faster execution .
  • 15. Linux Kernal • Android relies on Linux version 2.6 for core system services such as security, memory management, process management, network stack, and driver model. The kernel also acts as an abstraction layer between the hardware and the rest of the software stack.
  • 17.
  • 18. Anatomy of an Android Application
  • 19. Activities • As mentioned, Activities are classes that provide an interface. An Activity is given a window in which to add User Interface to. Therefore, creating multi-screen applications involves creating multiple Activities and transitioning between them. • The Activity class inherits from the abstract Context class.
  • 20. Context Context is the closest Android gets to a reference to the current application and provides a mechanism for accessing the Android system. A Context is needed to perform many operations in Android such as: • • • • Accessing Android services Accessing preferences Creating views Accessing Device Resources
  • 21. Intents • Intents are used throughout Android to make things happen by sending messages. Intents are most commonly used within applications to launch Activities. To launch a new Activity, we create a new Intent, set the Context and the Activity class to launch and then tell the OS to handle the Intent, which launches the Activity.
  • 22. loosely coupled applications • • Intents are a powerful concept as they allow the creation of loosely coupled applications. Intents can be used to communicate between any installed application component on the device. An Intent object can contain information for the receiving component. For example if your application calls via an Intent a browser it may send the URL to the browser component. An Intent also contain information for the Android system so that the Android system can determine which component should handle the request.
  • 23.
  • 24. AndroidManifest.xml Every Android application needs to include a file called AndroidManifest.xml. This file contains information about the application such as: • • • Component Registration - The components that make up the app, including registration of Activities and Intents. Required Permissions - The permissions the app requires. OS Version Compatibility - The minimum Android API level the application supports.
  • 25. Service • A Service is code that is long-lived and runs without a UI. A good example of this is a media player playing songs from a play list.
  • 26. Content Provider • Applications can store their data in files, a SQLite database, preferences or any other mechanism that makes sense. A content provider, however, is useful if you want your application's data to be shared with other applications. A content provider is a class that implements a standard set of methods to let other applications store and retrieve the type of data that is handled by that content provider.