提问人:ngaspama 提问时间:11/12/2021 最后编辑:ngaspama 更新时间:11/12/2021 访问量:229
如何确保不使用处理程序在主线程上执行网络调用?
How can I ensure that a network call is not executed on the main thread using a handler?
问:
我在使用 .runnable 包括网络调用(关闭套接字)。处理程序和异步处理程序有什么区别?不确定这是否在这里很方便。Handler handler = new Handler(Looper.getMainLooper()); handler.post(runnable);
答: 暂无答案
评论