python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
I am trying to create a retrofit instance inside companion object I am writing this code using using by lazy{}
class RetrofitInstance {
companion object {
private val retrofit by lazy {
val logging = HttpLoggingInterceptor()
logging.setLevel(HttpLoggingInterceptor.Level.BODY)
val cl...
Vikas Bhadoriya
Votes: 0
Answers: 1
Parse html tag from json response in kotlin
Hey I am working in json response with html tag in kotlin. I don't understand how to parse html tag in response. I tried to work with retrofit and moshi. My response will look like this
Response
{
&...

Vivek Modi
Votes: 0
Answers: 1
Handle application/pdf content type with Retrofit2
I have an API call to a server which gives me a response of type application/pdf. So far, nothing out of the ordinary.
The issue I am having is that I have a Retrofit instance with a MoshiConverterFac...
Max Michel
Votes: 0
Answers: 0
Kotlin no text from api
I wanted to load my text from an api in kotlin. I get no errors or exeptions only i get no text.
I got the info from this api: https://min-api.cryptocompare.com/data/price?fsym=ETH&tsyms=BTC,USD,E...
AlphaWolf212
Votes: 0
Answers: 1