Exchanging data between a mobile app and a backend server is an essential need for many development projects. Whilst the task became simpler with Google’s Volley library, it has a steep learning curve and Retrofit aims to make the task even simpler.
In this tutorial I will show you how exchange data between an Android app and a backend PHP application using the retrofit library. This sample application will simulate a login process by sending two strings (username and password) to the server, waiting for a response, and then show it to the user.
You can find the final code for this application on GitHub.
Continue reading %Retrofit, a Simple HTTP Client for Android and Java%
by Theodhor Pandeli via SitePoint
No comments:
Post a Comment