- 点击 NETWORK 时间轴上的任意位置以打开内存性能分析器
2.2 网络设置
MainActivity
val httpAsync = “https://httpbin.org/get”
.httpGet()
.responseString { request, response, result ->
print(response)
}
httpAsync.join()
SecondActivity
val httpAsync = “https://www.wanandroid.com/banner/json”
.httpGet()
.responseString { request, response, result ->
print(response)
}
httpAsync.join()