SlideShare uma empresa Scribd logo
1 de 32
Android™ Application Development


                        www.otssolutions.com
What is Android™ ?
• Google purchased Android Inc., a 22-month-old
  Palo Alto, California, startup in July 2005.

• Android is a software stack for mobile devices
  that includes an operating system, middleware
  and key applications.
Android
• One of the most widely used mobile OS these
  days is ANDROID. Android is a software bunch
  comprising not only operating system but also
  middleware and key applications.
• Android applications are written in java
  programming language and It is available as
  open source for developers to develop
  applications which can be further used for
  selling in android market.
Android OS Market




   In Q2 2009 Android had 2.8% market share which
   had grown to 33% market share by Q4 2010 and in
   May it’s grow to 50%, which made Android leader
   of smart phone OSs worldwide.
How Android™ Is Different
• Open for modification.

• This gives vendors the opportunity to change
  and enhance their products based on their own
  preferences. This has created many versions of
  Android™ phones, which can vary by vendor, as
  well as a range of other devices that use this
  platform.
Android System Architecture
Different version of Android
Basics applications of Android
• Android applications are composed of one or
  more           application          components
  (activities, services, content providers, and
  broadcast receivers).
• Each component performs a different role in
  the overall application behavior, and each one
  can be activated individually (even by other
  applications)
Basics applications of Android
• The manifest file must declare all components
  in the application and should also declare all
  application requirements, such as the minimum
  version of Android required and any hardware
  configurations required
• Non-code          application         resources
  (images, strings, layout files, etc.) should
  include alternatives for different device
  configurations (such as different strings for
  different languages)
Android Features
• Application Framework that enables reuse and
  replacement of components.
• Optimized Graphics that is powered by
  customized 2D graphics library and 3D graphics
  based on the OpenGL ES 1.0 specification
• Provision of Bluetooth, EDGE, 3G and Wi-Fi .
• SQLite for structured data storage Open source
• Web Kit engine based integrated web browser .
Android Features
• Camera, GPS, Compass, and Accelerometer
  (dependent on hardware support) GSM
  Telephony Dalvik virtual machine optimized for
  mobile devices.

• GSM Telephony

• Dalvik virtual machine optimized for mobile
  devices .
Android's Latest
• Browser: It also supports popular web
  standards like CSS 3D, Animations . It also
  supports playback of HTML5 video content.

• Gallery: Now the gallery supports PTP (Picture
  Transfer Protocol) so that users can directly
  connect their cameras with Android device and
  transfer pictures with a single touch.
Android's Latest
• Email: When replying or forwarding an HTML
  message, The Email app now sends both plain
  text and HTML bodies as a multi-part mime
  message. This ensures that the message will be
  formatted properly for all recipients.
• Enterprise support: Users can now configure
  an HTTP proxy for each connected Wi-Fi access
  point. This lets administrators work with users
  to set a proxy hostname, port, and any bypass
  sub domains.
What is Android Tablet ?
• Tablets are taking the computing world by
  storm. They are the latest trend that gives you
  internet capabilities, access to email, video
  chat and allows you to capture images and
  video while on the go.
• These multimedia devices are designed to be
  portable, with small dimensions and a
  lightweight design. They also give you control
  by navigating around the device using the
  touchscreen display or stylus pen.
Android Tablet

• Ice Cream Sandwich is the new update from
  Google to Android mobile operating system and
  tablets. It has many new features, which make
  it more of a complete revamp than upgrade.

• Android Tablet is very famous in modern world
  and people of all profession are using Tablets
  for different usages.
Android Tablet
• Android Tablet is very famous in modern world
  and people of all profession are using Tablets
  for different usages.
• There is no mess of maintaining a keyboard
  etc, but it is fully integrated with touch screen
  functionality and it has LCD screen.
• It is helpful for everyone and its usage totally
  depend on person-to-person and their
  requirements.
Android Cloud to Device Messaging
Framework (C2DM)
• Android Cloud to Device Messaging (C2DM) is
  a service that helps developers send data from
  servers to their applications on Android devices.
• The service provides a simple, lightweight
  mechanism that servers can use to tell mobile
  applications to contact the server directly, to
  fetch updated application or user data.
Cloud to Device Messaging (C2DM)
Characteristics of Android Cloud to Device
Messaging (C2DM)

• It allows third-party application servers to send
  lightweight messages to their Android
  applications.

• An application on an Android device doesn’t
  need to be running to receive messages.
Characteristics of Android Cloud to Device
Messaging (C2DM)
• It does not provide any built-in user interface
  or other handling for message data. C2DM
  simply passes raw message data received
  straight to the application.
• It uses an existing connection for Google
  services. This requires users to set up their
  Google account on their mobile devices.
Architecture of Android Cloud to Device
Messaging (C2DM)
Enabling C2DM
• The first time the application needs to use the
  messaging service, it fires off a registration
  Intent to a C2DM server.

• If the registration is successful, the C2DM
  server broadcasts a REGISTRATION Intent which
  gives the application a registration ID. The
  application should store this ID for later use.
Enabling C2DM
• To complete the registration, the
  application sends the registration ID to
  the application server. The application
  server typically stores the registration ID
  in a database.
Enabling C2DM

The application must include the id
package name is the unique identifier of
our application on Android.
Enabling C2DM

Google's servers will generate a token, the
registration id and return it to the
application.
Enabling C2DM

.This token will allow us to send a message from
the content. Once received, it must be sent to
our application server to be stored.
Sending a Message
• The application has a registration ID that allows
  it to receive messages for a particular device.
• The third-party application server has stored
  the registration ID.
• The application server sends a message to C2DM
  servers.
Sending a Message
• Google enqueue and stores the message in case
  the device is inactive.

• When the device is online, Google sends the
  message to the device.
Receiving a Message
Receiving a Message
• The system receives the incoming message and
  extracts the raw key/value pairs from the
  message payload.
• The system passes the key/value pairs to the
  targeted      Android      application in   a
  com.google.android.c2dm.intent.RECEIVE
  Intent as a set of extras.
• The Android application extracts the raw data
  from the RECEIVE Intent by key.
Thank You
USA                                                                             India
                                      United kingdom
4433 Merlin                                                                     Gurgaon ( Haryana )
                                      88 Wood Street                            795, Udyog Vihar, Phase-V
 Way , Soquel                          10th Floor London                        Gurgaon(Haryana) India
CA 95073                              EC2V 7RS                                  Ph: +91 124 4101350
United States                                                                   +91 124 4748100
                                      Ph: +44 208 099 1660
Ph: +1 408 540 0001
                                                                                Write to us at: sales@otssolutions.com
Write to us at: sales@otssolutions.com Write to us at: sales@otssolutions.com
                                                                                    http://www.otssolutions.com/

Mais conteúdo relacionado

Mais procurados

iSalesDoc Cloud Service
iSalesDoc Cloud ServiceiSalesDoc Cloud Service
iSalesDoc Cloud Service
i2dnetwork
 
Presentation
PresentationPresentation
Presentation
shekhaman
 
Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)
Ahsanul Karim
 

Mais procurados (13)

Android
AndroidAndroid
Android
 
How android 2
How android 2How android 2
How android 2
 
Andriod apps
Andriod appsAndriod apps
Andriod apps
 
.Net presentation
.Net presentation.Net presentation
.Net presentation
 
Kony-Cognizant Webinar: Finding the Silver Bullet in Retail Mobility
Kony-Cognizant Webinar: Finding the Silver Bullet in Retail MobilityKony-Cognizant Webinar: Finding the Silver Bullet in Retail Mobility
Kony-Cognizant Webinar: Finding the Silver Bullet in Retail Mobility
 
iSalesDoc Cloud Service
iSalesDoc Cloud ServiceiSalesDoc Cloud Service
iSalesDoc Cloud Service
 
Presentation
PresentationPresentation
Presentation
 
Synopsis on android application
Synopsis on android applicationSynopsis on android application
Synopsis on android application
 
Android os(comparison all other mobile os)
Android os(comparison all other mobile os)Android os(comparison all other mobile os)
Android os(comparison all other mobile os)
 
89 93
89 9389 93
89 93
 
Managing the Android Supply Chain and the Role of SPDX
Managing the Android Supply Chain and the Role of SPDXManaging the Android Supply Chain and the Role of SPDX
Managing the Android Supply Chain and the Role of SPDX
 
Android Operating System
Android Operating SystemAndroid Operating System
Android Operating System
 
Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)Day: 1 Introduction to Mobile Application Development (in Android)
Day: 1 Introduction to Mobile Application Development (in Android)
 

Semelhante a Android™ application development

Restaurant billing application
Restaurant billing applicationRestaurant billing application
Restaurant billing application
ch samaram
 
Android Workshop Presentation
Android Workshop PresentationAndroid Workshop Presentation
Android Workshop Presentation
NAILBITER
 

Semelhante a Android™ application development (20)

Restaurant billing application
Restaurant billing applicationRestaurant billing application
Restaurant billing application
 
Android introduction
Android introductionAndroid introduction
Android introduction
 
Compilation Of C/C++ program in Android
Compilation Of C/C++ program in AndroidCompilation Of C/C++ program in Android
Compilation Of C/C++ program in Android
 
POWERPOINT2
POWERPOINT2POWERPOINT2
POWERPOINT2
 
Android operating system
Android operating systemAndroid operating system
Android operating system
 
ANDROID NEW EDITION
ANDROID NEW EDITIONANDROID NEW EDITION
ANDROID NEW EDITION
 
Android Training Course In Chandigarh
Android Training Course In ChandigarhAndroid Training Course In Chandigarh
Android Training Course In Chandigarh
 
Learn Android app development in easy steps
Learn Android app development in easy stepsLearn Android app development in easy steps
Learn Android app development in easy steps
 
Android application development guide for beginners
Android application development guide for beginnersAndroid application development guide for beginners
Android application development guide for beginners
 
Android Workshop Presentation
Android Workshop PresentationAndroid Workshop Presentation
Android Workshop Presentation
 
Android
AndroidAndroid
Android
 
Android Security Humla Part 1
Android Security Humla Part 1Android Security Humla Part 1
Android Security Humla Part 1
 
Android
AndroidAndroid
Android
 
Unit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-assUnit 1-android-and-its-tools-ass
Unit 1-android-and-its-tools-ass
 
PRESENTATION ON ANDROID
PRESENTATION ON ANDROIDPRESENTATION ON ANDROID
PRESENTATION ON ANDROID
 
Android based os
Android based osAndroid based os
Android based os
 
Basic of Android App Development
Basic of Android App DevelopmentBasic of Android App Development
Basic of Android App Development
 
Android Training Course In Chandigarh
Android Training Course In ChandigarhAndroid Training Course In Chandigarh
Android Training Course In Chandigarh
 
Android 130923124440-phpapp01
Android 130923124440-phpapp01Android 130923124440-phpapp01
Android 130923124440-phpapp01
 
Lec001
Lec001Lec001
Lec001
 

Mais de Deepika Chaudhary

Creativity and-skill-to-java-app-development
Creativity and-skill-to-java-app-developmentCreativity and-skill-to-java-app-development
Creativity and-skill-to-java-app-development
Deepika Chaudhary
 
Java application-development-in-india
Java application-development-in-indiaJava application-development-in-india
Java application-development-in-india
Deepika Chaudhary
 
Net application-development–business-growth-with-net
Net application-development–business-growth-with-netNet application-development–business-growth-with-net
Net application-development–business-growth-with-net
Deepika Chaudhary
 
Hire Dedicated Java Developers
Hire Dedicated Java DevelopersHire Dedicated Java Developers
Hire Dedicated Java Developers
Deepika Chaudhary
 

Mais de Deepika Chaudhary (15)

.NET Framework 4.0 – Changes & Benefits
.NET Framework 4.0 – Changes & Benefits .NET Framework 4.0 – Changes & Benefits
.NET Framework 4.0 – Changes & Benefits
 
Windows Presentation Foundation
Windows Presentation Foundation  Windows Presentation Foundation
Windows Presentation Foundation
 
WINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATIONWINDOWS COMMUNICATION FOUNDATION
WINDOWS COMMUNICATION FOUNDATION
 
Cake php oops approach for php
Cake php  oops approach for phpCake php  oops approach for php
Cake php oops approach for php
 
Creativity and-skill-to-java-app-development
Creativity and-skill-to-java-app-developmentCreativity and-skill-to-java-app-development
Creativity and-skill-to-java-app-development
 
Creativity and-skill-to-java-app-development
Creativity and-skill-to-java-app-developmentCreativity and-skill-to-java-app-development
Creativity and-skill-to-java-app-development
 
Java application-development-in-india
Java application-development-in-indiaJava application-development-in-india
Java application-development-in-india
 
Net application-development–business-growth-with-net
Net application-development–business-growth-with-netNet application-development–business-growth-with-net
Net application-development–business-growth-with-net
 
Hire Dedicated Java Developers
Hire Dedicated Java DevelopersHire Dedicated Java Developers
Hire Dedicated Java Developers
 
Java application-development
Java application-developmentJava application-development
Java application-development
 
Software development companies in india
Software development companies in indiaSoftware development companies in india
Software development companies in india
 
Java the reason behind its never ending demand
Java the reason behind its never ending demandJava the reason behind its never ending demand
Java the reason behind its never ending demand
 
Know all about android development
Know all about android developmentKnow all about android development
Know all about android development
 
OTS Solutions LLC Corporate presentation
OTS Solutions LLC Corporate presentationOTS Solutions LLC Corporate presentation
OTS Solutions LLC Corporate presentation
 
OTS Solutions LLC Corporate presentation
OTS Solutions LLC Corporate presentationOTS Solutions LLC Corporate presentation
OTS Solutions LLC Corporate presentation
 

Último

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

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
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
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
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
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)
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
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...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 

Android™ application development

  • 1. Android™ Application Development www.otssolutions.com
  • 2. What is Android™ ? • Google purchased Android Inc., a 22-month-old Palo Alto, California, startup in July 2005. • Android is a software stack for mobile devices that includes an operating system, middleware and key applications.
  • 3. Android • One of the most widely used mobile OS these days is ANDROID. Android is a software bunch comprising not only operating system but also middleware and key applications. • Android applications are written in java programming language and It is available as open source for developers to develop applications which can be further used for selling in android market.
  • 4. Android OS Market In Q2 2009 Android had 2.8% market share which had grown to 33% market share by Q4 2010 and in May it’s grow to 50%, which made Android leader of smart phone OSs worldwide.
  • 5. How Android™ Is Different • Open for modification. • This gives vendors the opportunity to change and enhance their products based on their own preferences. This has created many versions of Android™ phones, which can vary by vendor, as well as a range of other devices that use this platform.
  • 8. Basics applications of Android • Android applications are composed of one or more application components (activities, services, content providers, and broadcast receivers). • Each component performs a different role in the overall application behavior, and each one can be activated individually (even by other applications)
  • 9. Basics applications of Android • The manifest file must declare all components in the application and should also declare all application requirements, such as the minimum version of Android required and any hardware configurations required • Non-code application resources (images, strings, layout files, etc.) should include alternatives for different device configurations (such as different strings for different languages)
  • 10. Android Features • Application Framework that enables reuse and replacement of components. • Optimized Graphics that is powered by customized 2D graphics library and 3D graphics based on the OpenGL ES 1.0 specification • Provision of Bluetooth, EDGE, 3G and Wi-Fi . • SQLite for structured data storage Open source • Web Kit engine based integrated web browser .
  • 11. Android Features • Camera, GPS, Compass, and Accelerometer (dependent on hardware support) GSM Telephony Dalvik virtual machine optimized for mobile devices. • GSM Telephony • Dalvik virtual machine optimized for mobile devices .
  • 12. Android's Latest • Browser: It also supports popular web standards like CSS 3D, Animations . It also supports playback of HTML5 video content. • Gallery: Now the gallery supports PTP (Picture Transfer Protocol) so that users can directly connect their cameras with Android device and transfer pictures with a single touch.
  • 13. Android's Latest • Email: When replying or forwarding an HTML message, The Email app now sends both plain text and HTML bodies as a multi-part mime message. This ensures that the message will be formatted properly for all recipients. • Enterprise support: Users can now configure an HTTP proxy for each connected Wi-Fi access point. This lets administrators work with users to set a proxy hostname, port, and any bypass sub domains.
  • 14. What is Android Tablet ? • Tablets are taking the computing world by storm. They are the latest trend that gives you internet capabilities, access to email, video chat and allows you to capture images and video while on the go. • These multimedia devices are designed to be portable, with small dimensions and a lightweight design. They also give you control by navigating around the device using the touchscreen display or stylus pen.
  • 15. Android Tablet • Ice Cream Sandwich is the new update from Google to Android mobile operating system and tablets. It has many new features, which make it more of a complete revamp than upgrade. • Android Tablet is very famous in modern world and people of all profession are using Tablets for different usages.
  • 16. Android Tablet • Android Tablet is very famous in modern world and people of all profession are using Tablets for different usages. • There is no mess of maintaining a keyboard etc, but it is fully integrated with touch screen functionality and it has LCD screen. • It is helpful for everyone and its usage totally depend on person-to-person and their requirements.
  • 17. Android Cloud to Device Messaging Framework (C2DM) • Android Cloud to Device Messaging (C2DM) is a service that helps developers send data from servers to their applications on Android devices. • The service provides a simple, lightweight mechanism that servers can use to tell mobile applications to contact the server directly, to fetch updated application or user data.
  • 18. Cloud to Device Messaging (C2DM)
  • 19. Characteristics of Android Cloud to Device Messaging (C2DM) • It allows third-party application servers to send lightweight messages to their Android applications. • An application on an Android device doesn’t need to be running to receive messages.
  • 20. Characteristics of Android Cloud to Device Messaging (C2DM) • It does not provide any built-in user interface or other handling for message data. C2DM simply passes raw message data received straight to the application. • It uses an existing connection for Google services. This requires users to set up their Google account on their mobile devices.
  • 21. Architecture of Android Cloud to Device Messaging (C2DM)
  • 22. Enabling C2DM • The first time the application needs to use the messaging service, it fires off a registration Intent to a C2DM server. • If the registration is successful, the C2DM server broadcasts a REGISTRATION Intent which gives the application a registration ID. The application should store this ID for later use.
  • 23. Enabling C2DM • To complete the registration, the application sends the registration ID to the application server. The application server typically stores the registration ID in a database.
  • 24. Enabling C2DM The application must include the id package name is the unique identifier of our application on Android.
  • 25. Enabling C2DM Google's servers will generate a token, the registration id and return it to the application.
  • 26. Enabling C2DM .This token will allow us to send a message from the content. Once received, it must be sent to our application server to be stored.
  • 27. Sending a Message • The application has a registration ID that allows it to receive messages for a particular device. • The third-party application server has stored the registration ID. • The application server sends a message to C2DM servers.
  • 28. Sending a Message • Google enqueue and stores the message in case the device is inactive. • When the device is online, Google sends the message to the device.
  • 30. Receiving a Message • The system receives the incoming message and extracts the raw key/value pairs from the message payload. • The system passes the key/value pairs to the targeted Android application in a com.google.android.c2dm.intent.RECEIVE Intent as a set of extras. • The Android application extracts the raw data from the RECEIVE Intent by key.
  • 32. USA India United kingdom 4433 Merlin Gurgaon ( Haryana ) 88 Wood Street 795, Udyog Vihar, Phase-V Way , Soquel 10th Floor London Gurgaon(Haryana) India CA 95073 EC2V 7RS Ph: +91 124 4101350 United States +91 124 4748100 Ph: +44 208 099 1660 Ph: +1 408 540 0001 Write to us at: sales@otssolutions.com Write to us at: sales@otssolutions.com Write to us at: sales@otssolutions.com http://www.otssolutions.com/