Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我想从 UI 线程中调用远程服务的功能.. 我该怎么做?
您可以使用 AsyncTask 调用远程服务。这将执行后台操作并在 UI 线程上发布结果,而无需操作线程。
检查这个链接