News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHPMaster.com:
Let's Talk Efficient Communication for PHP and Android, Part 1
May 28, 2012 @ 16:20:09

On PHPMaster.com today, they've started a new series about integrating two popular technologies - PHP and the Android OS - in this new tutorial from Matthew Turland. He'll show both sides of the code needed to get your Android app talking to a PHP backend.

This two-part article will guide you through the process of building an efficient PHP-based REST web service to be consumed by an Android-based application. Some of the concepts presented here are also applicable to other mobile platforms, such as iOS. I assume you already know the basics of PHP and Android development and that you have a suitable development environments set up for both. I'll focus mainly on showing you how to handle data serialization and compression in both environments.

In this first part, he starts from the client side, creating the code (Java) that's needed to create the connection to the backend. He stets it up as a background task so its execution won't block the main app from working. He shows how to execute it, running an "on create" method and checking to ensure the network is available for the request.

0 comments voice your opinion now!
tutorial android communication backend mobile java


blog comments powered by Disqus

Similar Posts

Rafael Dohms' Blog: Deploying a Symfony2 and Composer app on PagodaBox

DevShed: Introducing the Strategy Pattern

Zend Developer Zone: Using Zend_Tool to start up your ZF Project

IBM developerWorks: Java and PHP technology on AIX - Integrate the Java business application w/ DB2

MaltBlue.com: Zend Form Mastery with Zend Config - Part 4 Configuring Zend Validators


Community Events

Don't see your event here?
Let us know!


release introduction laravel5 voicesoftheelephpant language wordpress community php7 extension version laravel unittest podcast example library api opinion framework interview series

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework