Lines Matching refs:UI

1 page.title=Communicating with the UI Thread
12 <li><a href="#Handler">Define a Handler on the UI Thread</a></li>
13 <li><a href="#MoveValues">Move Data from a Task to the UI Thread</a>
33 from the task to objects running on the user interface (UI) thread. This feature allows your
34 tasks to do background work and then move the results to UI elements such as bitmaps.
37 Every app has its own special thread that runs UI objects such as {@link android.view.View}
38 objects; this thread is called the UI thread. Only objects running on the UI thread have access
40 <em>aren't</em> running on your UI thread, they don't have access to UI objects. To move data
41 from a background thread to the UI thread, use a {@link android.os.Handler} that's
42 running on the UI thread.
44 <h2 id="Handler">Define a Handler on the UI Thread</h2>
50 When you connect a {@link android.os.Handler} to your UI thread, the code that handles messages
51 runs on the UI thread.
55 creates your thread pools, and store the object in a global variable. Connect it to the UI
66 // Defines a Handler object that's attached to the UI thread
92 <h2 id="MoveValues">Move Data from a Task to the UI Thread</h2>
94 To move data from a task object running on a background thread to an object on the UI thread,
95 start by storing references to the data and the UI object in the task object. Next, pass the
98 the {@link android.os.Handler}. Because {@link android.os.Handler} is running on the UI thread,
99 it can move the data to the UI object.
144 because you're not currently running on the UI thread.
188 <h3>Move data to the UI</h3>
224 running on the UI thread, it can safely move the {@link android.graphics.Bitmap} to the
251 * Pass along other messages from the UI