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 2
June 05, 2012 @ 13:19:33

On PHPMaster.com today they've posted the second part of their series looking at combining a PHP backend and an Android application (by Matt Turland). In the previous article, he helped you set up some of the Android side to be able to reach out to a PHP web service. In this second part he gets into the sending and receiving of messages between the client and server.

Part 1 of this series focused on getting the Android application set up to make an HTTP request. In part 2, we'll focus on implementing the use of data serialization and compression on the Android and PHP sides of the request.

He has it broken up into the different steps of the process:

  • Determining the Data Serialization Format
  • Determining the Data Compression Format
  • Sending the Response
  • Decompressing the Response
  • Deserializing the Response

He also includes a section about caching the responses you get back from the server, an important step that can save you (and your users) some headaches and maybe even give a bit of a speed boost.

0 comments voice your opinion now!
android webservice data serialization compression response


blog comments powered by Disqus

Similar Posts

DevShed: Embedding Model Data in Views with CodeIgniter

Tobias Schlitt's Blog: Taint mode for PHP?

Zak Greant's Blog: The eZ partner program (response to Seth Gottlieb's Commercial O/S business post)

Tim Koschuetzki's Blog: How to put Combined Fields Into CakePHP's Model->generateList()

Community News: The PHP Community Responds to the Framework


Community Events





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


series threedevsandamaybe code testing list install release framework developer laravel interview refactor podcast language opinion introduction configure unittest community wordpress

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