【发布时间】:2022-01-02 14:50:38
【问题描述】:
onCreate 代码上方有一个 GET 操作。我想把这个get操作的响应值放到onCreate中。
我的代码
fun run() {
val request = Request.Builder()
.url("http://publicobject.com/helloworld.txt")
.build()
}
}
})
}
}
【问题讨论】:
标签: android kotlin retrofit okhttp kotlin-coroutines