Which of the following is NOT true about the SharedPreferences interface?

Which of the following is NOT true about the SharedPreferences interface?A . The data it saves is persistent even if application is killed.B . It only saves primitive data in key-value pairs.C . Modifications to preferences saved should go through class SharedPreferences.EditorD . It can save any data type in...

September 3, 2019 No Comments READ MORE +

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...

September 3, 2019 No Comments READ MORE +

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

September 2, 2019 No Comments READ MORE +

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...

September 2, 2019 No Comments READ MORE +

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

September 2, 2019 No Comments READ MORE +

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...

September 2, 2019 No Comments READ MORE +

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...

August 31, 2019 No Comments READ MORE +

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...

August 31, 2019 No Comments READ MORE +

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,...

August 31, 2019 No Comments READ MORE +

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...

August 30, 2019 No Comments READ MORE +