Which of the following classes is used by Intent to transfer data between different android components?
Answer(s): B
Bundle is generally used for passing data between various activities of android. It depends on you what type of values you want to pass, but bundle can hold all types of values, and pass to the new activity.
http://stackoverflow.com/questions/4999991/what-is-a-bundle-in-an-android-application
Which of the following is true about implicit intents? (Choose two)
Answer(s): A,C
Implicit intents do not name a specific component, but instead declare a general action to perform, which allows a component from another app to handle it.
http://developer.android.com/guide/components/intents-filters.html
Which of the following classes should be extended to create a custom view?
Answer(s): A
All of the view classes defined in the Android framework extend View. Your custom view can also extend View directly, or you can save time by extending one of the existing view subclasses, such as Button.
http://developer.android.com/training/custom-views/create-view.html
An AsyncTask can be cancelled anytime from any thread.
A task can be cancelled at any time by invoking cancel(boolean).
http://developer.android.com/reference/android/os/AsyncTask.html
Which of the following is NOT true about onMeasure() method of class View?
Answer(s): D
Syntax: protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)onMeasure() measures the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overridden by subclasses to provide accurate and efficient measurement of their contents.
http://developer.android.com/reference/android/view/View.html#onMeasure(int, int)
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.