Which of the following is NOT true about onMeasure() method of class View?
Which of the following is NOT true about onMeasure() method of class View?A . It measures the view and its contents to determine the measured width and height.B . It is invoked by measure().C . When overriding this method, a developer must call setMeasuredDimension().D . It takes three parameters: the...
What is the name of the class used by Intent to store additional information?
What is the name of the class used by Intent to store additional information?A . ExtraB . ParcelableC . BundleD . DataStoreView AnswerAnswer: C Explanation: References: Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
If your application is throwing exception android.content.ActivityNotFoundException, which of the following could resolve the problem?
If your application is throwing exception android.content.ActivityNotFoundException, which of the following could resolve the problem?A . Create a new sub-class of the View class.B . Create a new broadcast receiverC . Create the activity layoutD . Add the activity to the AndroidManifest.xmlView AnswerAnswer: D Explanation: The ActivityNotFoundException is thrown when...
Which of the following is not a valid Android resource file name?
Which of the following is not a valid Android resource file name?A . mylayout.xmlB . myLayout.xmlC . my_layout.xmlD . mylayout1.xmlView AnswerAnswer: B Explanation: References: Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
Which of these is the correct function of Traceview?
Which of these is the correct function of Traceview?A . Displays a graphical task execution log.B . Displays graphically a memory acquisition and release logC . Displays graphically the call stack.D . Displays graphically the Ul state hierarchy.View AnswerAnswer: A Explanation: Traceview is a graphical viewer for execution logs saved...
Which of the following statements about DDMS is incorrect?
Which of the following statements about DDMS is incorrect?A . You can display a list of currently running threads and select one to check its stack trace.B . You can use it to acquire screenshots of a terminal.C . You can forcibly execute garbage collection and check the present heap...
Which of the following is incorrect about the LogCat tool?
Which of the following is incorrect about the LogCat tool?A . LogCat UI tool is available inside Android Studio.B . You can create a log in your application using Log.v(String, String)C . Each log message has a tagD . Only one of your applications can create log entries, and it...
Which of the following is incorrect about intents?
Which of the following is incorrect about intents?A . They can be used to start an ActivityB . They can be used to start a serviceC . They can be used to start database insertionD . They can be used to start a dialog-themed activity.View AnswerAnswer: C Explanation: Incorrect: A,...
Which of the following Activity methods is invoked when the user clicks on an options menu item?
Which of the following Activity methods is invoked when the user clicks on an options menu item?A . onItemClickedB . onItemSelectedC . onOptionsItemClickedD . onOptionsItemSelectedView AnswerAnswer: D Explanation: When the user selects an item from the options menu (including action items in the app bar), the system calls your activity's...
Which of the following add a click listener to items in a listView?
Which of the following add a click listener to items in a listView?A . onClickListener.B . onItemClickListener.C . onItemClicked.D . onListItemClickListener.View AnswerAnswer: B Explanation: AdapterView.OnItemClickListener is an interface definition for a callback to be invoked when an item in this AdapterView has been clicked. References: http://developer.android.com/reference/android/widget/AdapterView.OnItemClickListener.html