Valid AND-401 Dumps shared by ExamDiscuss.com for Helping Passing AND-401 Exam! ExamDiscuss.com now offer the newest AND-401 exam dumps, the ExamDiscuss.com AND-401 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com AND-401 dumps with Test Engine here:
Which of the following is a rule that developers must always follow when writing multi-threaded Android applications? (Choose two)
Correct Answer: C,D
Explanation/Reference: C: If everything is happening in the UI thread, performing long operations such as network access or database queries will block the whole UI. When the thread is blocked, no events can be dispatched, including drawing events. From the user's perspective, the application appears to hang. Even worse, if the UI thread is blocked for more than a few seconds (about 5 seconds currently) the user is presented with the infamous "application not responding" (ANR) dialog. D: The Andoid UI toolkit is not thread-safe. So, you must not manipulate your UI from a worker thread- you must do all manipulation to your user interface from the UI thread. References: http://developer.android.com/guide/components/processes-and-threads.html