Thursday, 26 October 2017

Getting JSON using Retrofit in Android

In the previous post I explained how to build RecyclerView in Android, now here is the same example with Included Retrofit library. for that add the below lines in build.gradle under dependencies block and also add Internet permission in manifest file.
compile 'com.squareup.retrofit2:retrofit:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.3.0'

No comments:

Post a Comment