Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android REST Client: best solution?

I need to create an application that dialogues with a REST server.

I found that answer: Android REST client, Sample? but it's of 2012.

Is there a tutorial that I can follow (and that you suggest) in order to obtain a little working sample project? Thanks in advance.

like image 808
helloimyourmind Avatar asked Jul 01 '15 23:07

helloimyourmind


People also ask

What is REST client in Android?

REST Client in our case is the Retrofit library that is used on the client side (Android) to make HTTP request to REST API, in our case, The Movie DB API and also process the response.

Why REST API is the best?

One of the third benefits of REST APIs, and perhaps one of the most important, is scalability and flexibility . REST APIs can be scaled quickly primarily due to the separation between the client and the server. Additionally, developers can also easily integrate REST APIs without much added work.

Which is REST service client?

A REST API (also called a “RESTful” API) is a specific type of API that follows these guidelines. REST stands for Representational State Transfer. This means that when a client requests a resource using a REST API, the server transfers back the current state of the resource in a standardized representation.


2 Answers

All you need is here. https://square.github.io/retrofit/ Its easy to use and you almost dont have to care about json deserialization

like image 188
Sebastian Pakieła Avatar answered Oct 20 '22 01:10

Sebastian Pakieła


Try out a Library called Volley which was demoed in Google I/O 2013

like image 26
N Jay Avatar answered Oct 20 '22 01:10

N Jay