Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Developing Android REST client applications [closed]

Tags:

rest

android

Referring https://www.youtube.com/watch?v=xHXn3Kg2IQE. Can anybody provide source/links which implements such a design?

like image 697
SpunkerBaba Avatar asked Jul 21 '10 09:07

SpunkerBaba


2 Answers

The Google I/O app follows this design and is easy to follow.

Also a Google engineer briefly describes a REST client development here.

like image 157
alexanderblom Avatar answered Oct 12 '22 03:10

alexanderblom


I wrote an Android library based on this specific video session from Google IO 2010. It's ready for production and is already used in several apps

It's called DataDroid and will allow you to add easily to your project :

  • Local data management in a Sqlite database
  • Local data management in memory
  • REST Webservice calls with management of configuration changes (orientation for example) and Activities hiding for a phone call for example

The project contains :

  • The Android Library containing all the classes needed
  • A proof-of-concept project containing examples of code using the Android Library for the different use cases seen above as well as skeleton classes you can copy in your project and modify easily (there are filled with TODOs explaining what you have to do)

Each feature can be implemented independently from the others, so depending on which features you want to use in your project you may need only a part of the skeletons provided in the example project.

Last thing it's available on GitHub under the Beerware license :

As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy me a beer in return.

You can find more information about its architecture, the way to add it in your project or some examples of apps using it on its official website

like image 24
Foxykeep Avatar answered Oct 12 '22 02:10

Foxykeep