https://kotlinlang.org logo
Title
a

amar_1995

12/17/2019, 12:11 PM
I am working on an android application. I want to call restful apis to my application. There are many different libraries which we can use (like, retrofit, volley, okhttp, etc) I am confused which one should I use Any suggestions ??
r

Ray Eldath

12/17/2019, 12:14 PM
okhttp is nice. check out kohttp(https://github.com/rybalkinsd/kohttp) as well, it's a DSL wrapper of okhttp. these are convenient, but I never use them in android dev, so I have no idea about whether these fits your situation or not.
a

Alejandro Rios

12/17/2019, 12:18 PM
1. Retrofit/OkHttp combination is the most used actually 2. This question should be in #android, don't you think??
☝️ 1
e

ESchouten

12/17/2019, 12:20 PM
You should take a look at Ktor client!
👍 4
m

minucha

12/17/2019, 12:46 PM
https://guides.codepath.com/android#networking-and-models check out this website. It explains every library in detail. I use Volley for my projects, it requires lots of configuration tho for different types of requests. Check them out, play with them.
I never used retrofit, but they say it is easier to configure than volley. Hope it helps
j

Jeremy

12/19/2019, 9:27 PM
🤔 Volley is still being maintained?
a

asad.awadia

12/20/2019, 1:56 AM
Just use any http client - retrofit is overhyped
v

Vishnu Haridas

12/22/2019, 5:00 PM
Retrofit -- I find it really simple to configure and start.