Retrofit is same as Volley and it is definitely the better alternative to volley in terms of ease of use, performance, extensibility and other things. It is a type-safe REST client for Android built by Square. Using this tool android developer can make all network stuff much more easier. Now let’s see the action of retrofit by creating a new project. As an example, we are going to download some json and show it in RecyclerView as a list. Step 1. Create a new project in Android Studio Step 2. Open build.gradle and add Retrofit compile 'com.squareup.retrofit2:retrofit:2.1.0' make change over dependencies dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:23.1.1' compile 'com.android.support:design:23.1.0' compile 'com.squareup.retrofit2:retrofit:2.1.0' compile 'com.a
Learn with Samples