Building PHP Powered Android Applications

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    2 Favorites

    Building PHP Powered Android Applications - Presentation Transcript

    1. Building PHP Powered Android Applications John Coggeshall
    2. Introductions
      • Welcome!
      • About me
        • CTO of Automotive Computer Services (ACS)
        • Core PHP 5 Dev
        • Author, Speaker
      John Coggeshall Presentation Title
    3. Agenda
      • Crash Course in Android Development
      • Building PHP-powered backend services for the application
      • Bringing it all together
      • Warning: Nothing Magical here! Heavy Java/Android ahead!
    4. Server Backend
      • Zend Framework Backend of web services supporting our primary Flex-powered front-end
        • Supports both XML-based and Action Message Format (AMF) encodings
        • How Auth Service ultimately works:
          • Post to http://server/service/v1?command=auth.find the necessary parameters
          • Receive back a success, and a session ID
    5. Server-Side Service Code
    6. Basic Android Concepts
      • Activity – A “Screen” of your application where you do things
      • Intent – An inter-process / inter-activity notification system
      • Layout – An XML definition of widgets for an activity
    7. The Goal
      • Create an Android application that can authenticate against our pre-existing web services
        • Create the Android App itself
        • Create a Proxy that can communicate over HTTP to the backend server
        • Process the XML response
        • Save the authenticated session for future use
    8. The Android Application
    9. Considerations
      • Android itself doesn’t provide too many tools for web service calls (other than a HTTP client)
      • The most challenging piece of the connectivity is in the details
        • Error handling
        • Parsing of responses
        • Connecting all of it with an effective UI
    10. Another option
      • As Android is entirely Java-based, there are numerous Java toolkits that can help you along the way
        • Be careful, many are too bloated for Android
        • For XML-RPC, you can use the android-xmlrpc package
    11. If you’re going to try..
      • If you’re interested in trying the Android platform, here’s a few words to the wise:
        • Find good sources of documentation
          • Too many out-of-date / wrong articles
          • http://www.anddev.org/
          • http://www.helloandroid.com/
    12. Development Tips
      • Use the Android Debugger!
      • The Log class is great for printf() sort of things
        • (Shows up in the Android LogCat tab)
        • Log.e(“MyErrorTag”, “My Error Message”);
      • Server side: You *must* have good logging facilities
        • Log exceptions, errors (real and logical) to a file you can tail –f on when making service calls
    13. Development Tips
      • The AndroidManifest.xml file is very important
        • Need to define everything in there to some degree
          • Activity classes
          • Intent Filters
          • Permissions requested (i.e. Network access)
        • Works a lot better if you use the GUI interface instead of modifying the XML directly
    14. We’re Hiring!
      • Thank you!
        • Interested in working on a project like this? We’re hiring!
        • See our full-page ad in the conference program and visit us at the Job Fair!

    + John CoggeshallJohn Coggeshall, 8 months ago

    custom

    3298 views, 2 favs, 1 embeds more stats

    This is a talk I gave at PHP Quebec 2009 on buildin more

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 3298
      • 3294 on SlideShare
      • 4 from embeds
    • Comments 0
    • Favorites 2
    • Downloads 0
    Most viewed embeds
    • 4 views on http://www.blog.deitek.com

    more

    All embeds
    • 4 views on http://www.blog.deitek.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories