Which of the following is NOT true about SQLiteOpenHelper class? (Choose two)
Answer(s): B,C
Incorrect:A: onCreate() and onUpgrade() are the only two abstract methods of this class. D: SQLiteOpenHelper handles database creation and version management.This class makes it easy for ContentProvider implementations to defer opening and upgrading the database until first use, to avoid blocking application startup with long-running database upgrades.
http://developer.android.com/reference/android/database/sqlite/SQLiteOpenHelper.html
Which of the following is a rule that developers must always follow when writing multi-threaded Android applications? (Choose two)
Answer(s): C,D
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.
http://developer.android.com/guide/components/processes-and-threads.html
Which of the following are layout-related methods called by the framework on views, and you can override them when customizing a view? (Choose two)
Answer(s): A,D
http://developer.android.com/reference/android/view/View.html
Which of the following is true about this code snippet? (Choose two) Intent intent = new Intent(Intent.ACTION_DIAL,Uri.parse(“tel:555-1234”)); startActivity(intent);
Which of the following is a valid sequence of invokes to Activity lifecycle methods? (Select Two)
Post your Comments and Discuss Android AND-401 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the AND-401 content, but please register or login to continue.