In order to distinguish worker threads from the UI thread, the main entry point for the sample application sets the Name property of the CurrentThread object to "UIThread."
为了区别工作者线程和UI线程,在例子程序的主入口点设置CurrentThread对象的名字属性为“UIThread ”。
To fix this problem, Android offers several ways to access the UI thread from other threads. Here is a list of methods that can help.
为了解决以上问题,Android提供了几种途径来从其它线程中访问UI线程。
Android offers several ways to access the UI thread from other threads. You may already be familiar with some of them but here is a comprehensive list.
Android提供了几种不同的方式来通过其它线程访问UI线程。
The article also explains the API that your application can use to interact with Android UI toolkit components running on the main thread and spawn managed worker threads.
同时本文还会对应用程序与主线程中的AndroidUItoolkit组件交互以及产生托管工作线程的API进行解释。
As a result, Swing applications often require additional worker threads for long-running UI-related tasks.
因此,Swing应用程序经常需要额外的工作线程,用于运行时间很长的、同ui有关的任务。
In these scenarios, the UI thread locks the bitmap and exposes the back buffer to other threads.
在这些情况下,ui线程锁定位图,并且向其他线程公开后台缓冲区。
In these scenarios, the UI thread locks the bitmap and exposes the back buffer to other threads.
在这些情况下,ui线程锁定位图,并且向其他线程公开后台缓冲区。
应用推荐