user646366
user646366

Reputation: 41

Which type of Client/Server architecture will be used?

I want to develop an Android application based on location based social network like (Google latitude) so which type of client/server will be used for my application. What type of client/server architecture will be used? Is there any helpful website, video, book about client/server architecture related to my application? (I am new in Android development.)

Upvotes: 4

Views: 1541

Answers (2)

Andrey Agibalov
Andrey Agibalov

Reputation: 7694

I'd say use CRest and ignore all these red-eye nerds who say that you should reinvent your own bicycle by using HTTPClient and GSON/org.json. It's not worth it. You need a client-server communication channel, right? Just take it.

Upvotes: 0

Peter Knego
Peter Knego

Reputation: 80340

What framework would you like to use on server? What computer languages are you proficient in? Do you want to run this on your own servers or in the cloud?

A generic answer is:

  1. Create a RESTful service on server. REST is pretty common and is supported under all modern languages-frameworks. As data format use JSON as it is easier and faster to decode then XML and also maps more nicely to objects. If you use Java/servlets on server you might want to take a look at Resteasy.

  2. On Android use HTTPClient to communicate with your REST server. Use Gson to produce/consume JSON and map it to your objects.

Upvotes: 7

Related Questions