Android kotlin http url request
kotlin.concurrent.thread{
val url = "https://hangj.cnblogs.com/"
val res = try { java.net.URL(url).readText() } catch (ex: Exception) { return@thread }
runOnUiThread { println("res: $res") }
}
+V why_null 请备注:from博客园