Which of the following classes should be extended to create a custom view?
Which of the following classes should be extended to create a custom view?A . ViewB . ViewGroupC . ContextD . ActivityView AnswerAnswer: A Explanation: 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...
Which of the following is correct about XML layout files?
Which of the following is correct about XML layout files?A . In order to display a UI defined in the XML layout file “main.xml”, call the setContentView method of the Activity with the parameter string “main.xml".B . There is no distinction between implementation of the layout definition by code, or...
Which of the following tools creates certificates for signing Android applications?
Which of the following tools creates certificates for signing Android applications?A . adbB . logcatC . keytoolD . certgenView AnswerAnswer: C Explanation: You do not need Android Studio to sign your app. You can sign your app from the command line using standard tools from the Android SDK and the...
Which two code fragments, independently, print each element in this array?
Given the following array: Which two code fragments, independently, print each element in this array? (Choose two.)A . B . C . D . E . F . View AnswerAnswer: BE
To add a new Activity to your application, you need to perform the following steps:
To add a new Activity to your application, you need to perform the following steps:A . Create a Java class that extends View, set a layout, and add an Activity tag in AndroidManifest.xmlB . Create layout resource only.C . Create a Java class that extends Activity, add an Activity tag...
Which of these files contains text values that you can use in your application?
Which of these files contains text values that you can use in your application?A . AndroidManifest.xmlB . res/Text.xmlC . res/layout/Main.xmlD . res/values/strings.xmlView AnswerAnswer: D Explanation: References: Android ATC Self Study Guide http://www.androidatc.com/pages-19/Self-Study
Which of the following tools creates certificates for signing Android applications?
Which of the following tools creates certificates for signing Android applications?A . adbB . logcatC . keytoolD . certgenView AnswerAnswer: C Explanation: You do not need Android Studio to sign your app. You can sign your app from the command line using standard tools from the Android SDK and the...
Which of the following is NOT true about the MenuItem interface?
Which of the following is NOT true about the MenuItem interface?A . The MenuItem instance will be returned by the Menu class add(...) method.B . MenuItem can decide the Intent issued when clicking menu components.C . MenuItem can display either an icon or text.D . MenuItem can set a checkbox.View...
Which of the following is NOT a correct constructer for ArrayAdapter?
Which of the following is NOT a correct constructer for ArrayAdapter?A . ArrayAdapter(Context context)B . ArrayAdapter (Context context, int recourse)C . ArayAdpater (Context context , int resource, int textViewResourceId)D . ArrayAdapter (Context context , int resource, List<T> items)View AnswerAnswer: A Explanation: Public ArrayAdapter Constructors include: public ArrayAdapter (Context context, int...
Which of the following is a call-back method that inflates an options menu from file res/menu/menu.xml?
Which of the following is a call-back method that inflates an options menu from file res/menu/menu.xml?A . onOptionsItemSelectedB . onCreateC . onCreateMenuD . onCreateOptionsMenuView AnswerAnswer: D Explanation: To specify the options menu for an activity, override onCreateOptionsMenu() (fragments provide their own onCreateOptionsMenu() callback). In this method, you can inflate your...