SlideShare a Scribd company logo
Building PHP Powered Android Applications John Coggeshall
Introductions Welcome! About me CTO of Automotive Computer Services (ACS) Core PHP 5 Dev Author, Speaker John Coggeshall Presentation Title
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!
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
Server-Side Service Code
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
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
The Android Application
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
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
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/
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
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
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!

More Related Content

What's hot (20)

PPT
Introduction to Selenium
rohitnayak
 
PPT
Php Frameworks
Ryan Davis
 
PPTX
QA Fest 2014. Ярослав Пернеровский. Appium - два в одном. рецепт приготовлени...
QAFest
 
PPTX
Failure and Success in Software Automation by Oleksandr Reminnyi
SoftServe
 
PPT
Stepin evening presented
Vijayan Reddy
 
PDF
Selenium IDE LOCATORS
Mindfire Solutions
 
PPTX
Increase automation to rest
vodQA
 
PDF
Robot framework - Lord of the Rings
Asheesh Mehdiratta
 
ODP
A Brief Introduction to Zend_Form
Jeremy Kendall
 
PPTX
Test Automation and Selenium
Karapet Sarkisyan
 
PPT
Web Test Automation with Selenium
vivek_prahlad
 
PPT
BCS Selenium Workshop
Colin McDonald
 
PDF
TestWorks Conf Robot framework - the unsung hero of test automation - Michael...
Xebia Nederland BV
 
PDF
Web UI test automation instruments
Artem Nagornyi
 
PPT
Selenium Ide Tutorials
gueste1e4db
 
PPTX
Acceptance testing with codeception
Deniz Zoeteman
 
PPT
Selenium
Daksh Sharma
 
PPT
Api desgin
Prabhat gangwar
 
PPTX
Python in Test automation
Krishnana Sreeraman
 
PPT
Selenium
Kalyan ch
 
Introduction to Selenium
rohitnayak
 
Php Frameworks
Ryan Davis
 
QA Fest 2014. Ярослав Пернеровский. Appium - два в одном. рецепт приготовлени...
QAFest
 
Failure and Success in Software Automation by Oleksandr Reminnyi
SoftServe
 
Stepin evening presented
Vijayan Reddy
 
Selenium IDE LOCATORS
Mindfire Solutions
 
Increase automation to rest
vodQA
 
Robot framework - Lord of the Rings
Asheesh Mehdiratta
 
A Brief Introduction to Zend_Form
Jeremy Kendall
 
Test Automation and Selenium
Karapet Sarkisyan
 
Web Test Automation with Selenium
vivek_prahlad
 
BCS Selenium Workshop
Colin McDonald
 
TestWorks Conf Robot framework - the unsung hero of test automation - Michael...
Xebia Nederland BV
 
Web UI test automation instruments
Artem Nagornyi
 
Selenium Ide Tutorials
gueste1e4db
 
Acceptance testing with codeception
Deniz Zoeteman
 
Selenium
Daksh Sharma
 
Api desgin
Prabhat gangwar
 
Python in Test automation
Krishnana Sreeraman
 
Selenium
Kalyan ch
 

Viewers also liked (10)

PDF
Droidcon 2013 automotive quality dunca_czol_garmin
Droidcon Berlin
 
PDF
Yes we can
Droidcon Berlin
 
PDF
Droidcon de 2014 google cast
Droidcon Berlin
 
PDF
Android programming -_pushing_the_limits
Droidcon Berlin
 
PDF
crashing in style
Droidcon Berlin
 
PDF
Marko Gargenta_Remixing android
Droidcon Berlin
 
DOCX
Lab director performance appraisal
sophiakara32
 
PDF
Raspberry Pi
Droidcon Berlin
 
PDF
Details matter in ux
Droidcon Berlin
 
PDF
Android industrial mobility
Droidcon Berlin
 
Droidcon 2013 automotive quality dunca_czol_garmin
Droidcon Berlin
 
Yes we can
Droidcon Berlin
 
Droidcon de 2014 google cast
Droidcon Berlin
 
Android programming -_pushing_the_limits
Droidcon Berlin
 
crashing in style
Droidcon Berlin
 
Marko Gargenta_Remixing android
Droidcon Berlin
 
Lab director performance appraisal
sophiakara32
 
Raspberry Pi
Droidcon Berlin
 
Details matter in ux
Droidcon Berlin
 
Android industrial mobility
Droidcon Berlin
 
Ad

Similar to Building PHP Powered Android Applications (20)

PPT
Lamp Zend Security
Ram Srivastava
 
PPT
Android For Java Developers
Mike Wolfson
 
PDF
PHP in a mobile ecosystem
Ivo Jansch
 
PPT
Demo
bkslide
 
PPT
first pitch
alind tiwari
 
PPT
werwr
alind tiwari
 
PPT
first pitch
alind tiwari
 
PPT
Greenathan
alind tiwari
 
PPT
Unit Test for ZF SlideShare Component
zftalk
 
PPT
sadasd
alind tiwari
 
PPT
before upload
alind tiwari
 
PPT
sdfsdf
alind tiwari
 
PPT
sdfsd
alind tiwari
 
PPT
Test Nan
alind tiwari
 
PPT
Unit Test for ZF SlideShare Component
zftalk
 
PPT
first pitch
alind tiwari
 
PPT
latest slide
alind tiwari
 
PPT
Unit Test for ZF SlideShare Component
zftalk
 
PPT
before upload
alind tiwari
 
PPT
Unit Test for ZF SlideShare Component
zftalk
 
Lamp Zend Security
Ram Srivastava
 
Android For Java Developers
Mike Wolfson
 
PHP in a mobile ecosystem
Ivo Jansch
 
Demo
bkslide
 
first pitch
alind tiwari
 
first pitch
alind tiwari
 
Greenathan
alind tiwari
 
Unit Test for ZF SlideShare Component
zftalk
 
sadasd
alind tiwari
 
before upload
alind tiwari
 
sdfsdf
alind tiwari
 
Test Nan
alind tiwari
 
Unit Test for ZF SlideShare Component
zftalk
 
first pitch
alind tiwari
 
latest slide
alind tiwari
 
Unit Test for ZF SlideShare Component
zftalk
 
before upload
alind tiwari
 
Unit Test for ZF SlideShare Component
zftalk
 
Ad

More from John Coggeshall (20)

PPTX
Virtualization for Developers
John Coggeshall
 
PPTX
Migrating to PHP 7
John Coggeshall
 
PPTX
Peek at PHP 7
John Coggeshall
 
PPTX
ZF2 Modules: Events, Services, and of course, modularity
John Coggeshall
 
PPT
PHP Development for Google Glass using Phass
John Coggeshall
 
PPTX
Virtualization for Developers
John Coggeshall
 
PPTX
Development with Vagrant
John Coggeshall
 
PPTX
Introduction to Zend Framework 2
John Coggeshall
 
PPTX
10 things not to do at a Startup
John Coggeshall
 
PPTX
Virtualization for Developers
John Coggeshall
 
PPTX
Puppet
John Coggeshall
 
PPT
Ria Applications And PHP
John Coggeshall
 
PPT
Beyond the Browser
John Coggeshall
 
PPT
Apache Con 2008 Top 10 Mistakes
John Coggeshall
 
PPT
Ria Development With Flex And PHP
John Coggeshall
 
PPT
Top 10 Scalability Mistakes
John Coggeshall
 
PPT
Enterprise PHP: A Case Study
John Coggeshall
 
PPT
Building Dynamic Web Applications on i5 with PHP
John Coggeshall
 
PPT
PHP Security Basics
John Coggeshall
 
PPT
Migrating from PHP 4 to PHP 5
John Coggeshall
 
Virtualization for Developers
John Coggeshall
 
Migrating to PHP 7
John Coggeshall
 
Peek at PHP 7
John Coggeshall
 
ZF2 Modules: Events, Services, and of course, modularity
John Coggeshall
 
PHP Development for Google Glass using Phass
John Coggeshall
 
Virtualization for Developers
John Coggeshall
 
Development with Vagrant
John Coggeshall
 
Introduction to Zend Framework 2
John Coggeshall
 
10 things not to do at a Startup
John Coggeshall
 
Virtualization for Developers
John Coggeshall
 
Ria Applications And PHP
John Coggeshall
 
Beyond the Browser
John Coggeshall
 
Apache Con 2008 Top 10 Mistakes
John Coggeshall
 
Ria Development With Flex And PHP
John Coggeshall
 
Top 10 Scalability Mistakes
John Coggeshall
 
Enterprise PHP: A Case Study
John Coggeshall
 
Building Dynamic Web Applications on i5 with PHP
John Coggeshall
 
PHP Security Basics
John Coggeshall
 
Migrating from PHP 4 to PHP 5
John Coggeshall
 

Recently uploaded (20)

PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
PDF
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PPTX
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
POV_ Why Enterprises Need to Find Value in ZERO.pdf
darshakparmar
 
Peak of Data & AI Encore AI-Enhanced Workflows for the Real World
Safe Software
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
Mastering ODC + Okta Configuration - Chennai OSUG
HathiMaryA
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
UPDF - AI PDF Editor & Converter Key Features
DealFuel
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 

Building PHP Powered Android Applications

  • 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
  • 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
  • 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!