okhttp 在 android 中怎么发送异步请求

2025-05-14 16:07:00
推荐回答(1个)
回答1:

放到回调函数里面

new Handler(getMainLooper()).post(new Runnable() {
public void run() {
// 需要在主线程的操作。
}
});