Question : What Eclipse plugin is required to develop Android application?
1. J2EE
2. Android Software Development Kit
3. Android Development Tools
4. Web Development Tools
Correct Answer : 3 Explanation: Android Development Tools (ADT) is a plugin for the Eclipse IDE that is designed to give you a powerful, integrated environment in which to build Android applications.
ADT extends the capabilities of Eclipse to let you quickly set up new Android projects, create an application UI, add packages based on the Android Framework API, debug your applications using the Android SDK tools, and even export signed (or unsigned) .apk files in order to distribute your application.
Developing in Eclipse with ADT is highly recommended and is the fastest way to get started. With the guided project setup it provides, as well as tools integration, custom XML editors, and debug output pane, ADT gives you an incredible boost in developing Android applications. - See more at: https://marketplace.eclipse.org/content/android-development-tools-eclipse#sthash.Q6mA3ln5.dpuf
Question : Can create a custom view by extending class Activity.
1. True 2. False
Correct Answer : 2 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 extending one of the existing view subclasses, such as Button.
To allow Android Studio to interact with your view, at a minimum you must provide a constructor that takes a Context and an AttributeSet object as parameters. This constructor allows the layout editor to create and edit an instance of your view.
Question : Which of these files contains text values that you can use in your application?
1. AndroidManifest.xml
2. res/Text.xml
3. res/layout/Main.xml
4. res/values/strings.xml
Correct Answer : 4 Explanation: A string resource provides text strings for your application with optional text styling and formatting. There are three types of resources that can provide your application with strings:
String XML resource that provides a single string. String Array XML resource that provides an array of strings. Quantity Strings (Plurals) XML resource that carries different strings for pluralization. All strings are capable of applying some styling markup and formatting arguments. For information about styling and formatting strings, see the section about Formatting and Styling.
String A single string that can be referenced from the application or from other resource files (such as an XML layout).
Note: A string is a simple resource that is referenced using the value provided in the name attribute (not the name of the XML file). So, you can combine string resources with other simple resources in the one XML file, under one element.
FILE LOCATION: res/values/filename.xml The filename is arbitrary. The element's name will be used as the resource ID. COMPILED RESOURCE DATATYPE: Resource pointer to a String. RESOURCE REFERENCE: In Java: R.string.string_name In XML:@string/string_name