android okhttp 的回调可以直接刷新ui吗

2025-04-07 19:55:01
推荐回答(1个)
回答1:

okhttp 的回调onResponse方法并不是在UI线程,所以不能直接刷新UI
可以使用handler来刷新