Home | History | Annotate | Download | only in articles

Lines Matching full:your

1 page.title=Keeping Your App Responsive
27 long to process input. The worst thing that can happen to your app's responsiveness
31 responsive for a period of time by displaying a dialog that says your app has
33 in Figure 1. At this point, your app has been unresponsive for a considerable
35 to design responsiveness into your application so the system never displays
39 application is not responding and provides guidelines for ensuring that your
54 <p>In any situation in which your app performs a potentially lengthy operation,
57 interface event loop) running and prevents the system from concluding that your code
80 This means anything your application is doing in the UI thread that
81 takes a long time to complete can trigger the ANR dialog because your
100 {@link android.os.AsyncTask#onProgressUpdate onProgressUpdate()} callback method. From your
140 create your own {@link java.lang.Thread} or {@link android.os.HandlerThread} class. If you do,
144 this way, then the thread could still slow down your app because it operates at the same priority
148 be sure that your UI thread does not block while waiting for the worker thread to
151 thread to complete, your main thread should provide a {@link
153 Designing your application in this way will allow your app's UI thread to remain
163 tasks via worker threads, your
171 you might accidentally be doing on your main thread.</p>
180 make your application seem responsive to users:</p>
183 <li>If your application is doing work in the background in response to
185 android.widget.ProgressBar} in your UI).</li>
190 <li>If your application has a time-consuming initial setup phase, consider
198 in your app's responsiveness.</li>