SlideShare a Scribd company logo
1 of 8
18 February 2010




Android AMF Client
Agenda

 Android Server Communication
 About AMF
       About AMF
       Performance Matrix
   Android AMF Client Library
       Overview
       Features
       Sample
Android Server Communication


Using URLConnection over HTTP
      Works over HTTP
      Need to read and write data byte-by-byte
http://www.anddev.org/getting_data_from_the_web_urlconnection_via_http-t351.html



Remote Procedure Calls
      Requires stubs/skeletons using aidl for local & remote processes.
      All methods executed synchronously – hence blocking.
http://developer.android.com/guide/topics/fundamentals.html#rpc


Web Services
 KSOAP2 & KXML-RPC
 No built-in support for handling float
http://www.anddev.org/web_services_-_an_xml-rpc_client_for_android-t646.html
http://code.google.com/p/android-xmlrpc/
About AMF


  Action Message Format (AMF) - a binary format to serialize
     ActionScript objects.
    AMF is 10 times faster than other HTTP protocols


Performance of AMF3 protocol
when used with a Flex client –
communicating with a BlazeDS
server component
Android AMF Client Library


Adaptation of AMF 3.0 protocol for Android clients
   Remoting support based on RPC mechanism.
   Framework is asynchronous in nature and hence non-blocking.
   Support for Secured AMF channel.
   No need for stubs and skeletons, neither on client nor server.
   A performance boost for Android applications communicating with
    enterprise server applications.
   Ease of use with simple interfaces and events
   Can connect to any AMF compliant server such as:
     • BlazeDS / LCDS
     • AMFPHP
     • RubyAMF
     • WebORB
     • OpenAMF
Android AMF Client Library

                                       Class Diagram


                                                                      <<abstract>>
                       <<interface>>         <<implements>>

                      Channel                                  AbstractChannel
               + getConnection()
               + setRemoteURL()
               + connect()
                                                AMFChannel                  SecuredAMFChannel
RemoteObject
+ call()
                                                                      <<interface>>
                       <<interface>>

                RemoteListener                                         Event
                                                              + getData()
               + onResult(ResultEvent)
               + onError(ErrorEvent)



                                                 ResultEvent                          ErrorEvent
As simple as it gets …

Implement to receive asynchronous success / failure events


1)   Instantiate desired channel with remote server URL of web application
2)   Create Remote Object of required service provider
3)   Register listener for success / failure events
4)   Invoke remote method with desired parameters




5) All business and communication exceptions are stored in ErrorEvent
6) Result is returned in ResultEvent
7) Success / Error data is enclosed in respective events
Android Competence Center
android@aftek.com

Aftek Limited
More details here…

More Related Content

Recently uploaded

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Recently uploaded (20)

Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
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
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
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
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
HTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation StrategiesHTML Injection Attacks: Impact and Mitigation Strategies
HTML Injection Attacks: Impact and Mitigation Strategies
 
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...
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
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
 
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
 
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...
 
What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?What Are The Drone Anti-jamming Systems Technology?
What Are The Drone Anti-jamming Systems Technology?
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
ThinkNow
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

Android AMF client library

  • 2. Agenda  Android Server Communication  About AMF  About AMF  Performance Matrix  Android AMF Client Library  Overview  Features  Sample
  • 3. Android Server Communication Using URLConnection over HTTP  Works over HTTP  Need to read and write data byte-by-byte http://www.anddev.org/getting_data_from_the_web_urlconnection_via_http-t351.html Remote Procedure Calls  Requires stubs/skeletons using aidl for local & remote processes.  All methods executed synchronously – hence blocking. http://developer.android.com/guide/topics/fundamentals.html#rpc Web Services  KSOAP2 & KXML-RPC  No built-in support for handling float http://www.anddev.org/web_services_-_an_xml-rpc_client_for_android-t646.html http://code.google.com/p/android-xmlrpc/
  • 4. About AMF  Action Message Format (AMF) - a binary format to serialize ActionScript objects.  AMF is 10 times faster than other HTTP protocols Performance of AMF3 protocol when used with a Flex client – communicating with a BlazeDS server component
  • 5. Android AMF Client Library Adaptation of AMF 3.0 protocol for Android clients  Remoting support based on RPC mechanism.  Framework is asynchronous in nature and hence non-blocking.  Support for Secured AMF channel.  No need for stubs and skeletons, neither on client nor server.  A performance boost for Android applications communicating with enterprise server applications.  Ease of use with simple interfaces and events  Can connect to any AMF compliant server such as: • BlazeDS / LCDS • AMFPHP • RubyAMF • WebORB • OpenAMF
  • 6. Android AMF Client Library Class Diagram <<abstract>> <<interface>> <<implements>> Channel AbstractChannel + getConnection() + setRemoteURL() + connect() AMFChannel SecuredAMFChannel RemoteObject + call() <<interface>> <<interface>> RemoteListener Event + getData() + onResult(ResultEvent) + onError(ErrorEvent) ResultEvent ErrorEvent
  • 7. As simple as it gets … Implement to receive asynchronous success / failure events 1) Instantiate desired channel with remote server URL of web application 2) Create Remote Object of required service provider 3) Register listener for success / failure events 4) Invoke remote method with desired parameters 5) All business and communication exceptions are stored in ErrorEvent 6) Result is returned in ResultEvent 7) Success / Error data is enclosed in respective events