Premium

Associate Android Developer Certification Questions and Answer (Dumps and Practice Questions)



Question : Which of the following is incorrect about the LogCat tool?

 : Which of the following is incorrect about the LogCat tool?
1. A LogCat view is available as part of the ADT plugin of Eclipse

2. You can create a log in your application using Log.v(String, String)

3. Access Mostly Uused Products by 50000+ Subscribers

4. Only one of your application can create log entries, and it should be component class (Activity, Service,...etc)

Correct Answer : Get Lastest Questions and Answer :
Explanation: The Android logging system provides a mechanism for collecting and viewing system debug output. Logs from various applications and portions of the system are collected in a series of circular buffers, which then can be viewed and filtered by the logcat command. You can use logcat from an ADB shell to view the log messages





Question : Which of the following information is not included in the Manifest file?

 : Which of the following information is not included in the Manifest file?
1. The activities contained in the application

2. The permissions required by the application

3. Access Mostly Uused Products by 50000+ Subscribers

4. The handset model compatible with your application.

Correct Answer : Get Lastest Questions and Answer :
Explanation: Every application must have an AndroidManifest.xml file (with precisely that name) in its root directory. The manifest file presents essential information about your app to the Android system, information the system must have before it can run any of the app's code. Among other things, the manifest does the following:

It names the Java package for the application. The package name serves as a unique identifier for the application.
It describes the components of the application - the activities, services, broadcast receivers, and content providers that the application is composed of. It names the classes that implement each of the components and publishes their capabilities (for example, which Intent messages they can handle). These declarations let the Android system know what the components are and under what conditions they can be launched.
It determines which processes will host application components.
It declares which permissions the application must have in order to access protected parts of the API and interact with other applications.
It also declares the permissions that others are required to have in order to interact with the application's components.
It lists the Instrumentation classes that provide profiling and other information as the application is running. These declarations are present in the manifest only while the application is being developed and tested; they're removed before the application is published.
It declares the minimum level of the Android API that the application requires.
It lists the libraries that the application must be linked against.




Question : Which method should you use to start a sub-activity?

 : Which method should you use to start a sub-activity?
1. startActivity(Intent intent)

2. startActivityForResult(Intent intent)

3. Access Mostly Uused Products by 50000+ Subscribers

4. startSubActivity(Intent intent)

Correct Answer : Get Lastest Questions and Answer :
Explanation: Starting another activity doesn't have to be one-way. You can also start another activity and receive a result back. To receive a result, call startActivityForResult() (instead of startActivity()).

For example, your app can start a camera app and receive the captured photo as a result. Or, you might start the People app in order for the user to select a contact and you'll receive the contact details as a result.

Of course, the activity that responds must be designed to return a result. When it does, it sends the result as another Intent object. Your activity receives it in the onActivityResult() callback.

Note: You can use explicit or implicit intents when you call startActivityForResult(). When starting one of your own activities to receive a result, you should use an explicit intent to ensure that you receive the expected result.


Related Questions


Question : Which of these is the incorrect explanation of the Toast class?

 : Which of these is the incorrect explanation of the Toast class?
1. Toast is a simple class for display, and cannot be set with a custom XML-defined layout

2. The display duration time of Toast can be chosen from 2 types, LENGTHJjDNG and LENGTH_SHORT.

3. Access Mostly Uused Products by 50000+ Subscribers

4. Since Toast automatically closes after display, a dismiss () method is not provided


Question : Which ContentProvider does Android not provide as a standard?

 : Which ContentProvider does Android not provide as a standard?
1. A telephone log

2. A database

3. Access Mostly Uused Products by 50000+ Subscribers

4. A contact list


Question : Which of these is the incorrect explanation of SQLite?

 : Which of these is the incorrect explanation of SQLite?
1. There are 5 types of data type stored in column; Null, Integer, Real, Text, and Blob.

2. There are restrictions on some functions of SQLite loaded on Android

3. Access Mostly Uused Products by 50000+ Subscribers

4. SQLite is a database that saves data in a single file


Question : When executing android.content.Context.openFileOutput("sample.txt", ), which path is the file stored in?


 : When executing android.content.Context.openFileOutput(
1. /data/app//files

2. /data/data//files

3. Access Mostly Uused Products by 50000+ Subscribers

4. /system/data//files



Question : Which of these is the correct explanation of the Ul/Application Exerciser Monkey (Monkey tool)?

 : Which of these is the correct explanation of the Ul/Application Exerciser Monkey (Monkey tool)?
1. It can execute tests covering all events.

2. It can execute stress tests and sometimes discover new bugs.

3. Access Mostly Uused Products by 50000+ Subscribers

4. Since it reduces the interval between events as much as possible, it operates in a heavilyloaded state.


Question : Which of these is the correct explanation regarding the following methods?
(1 )android.content.Context.sendBroadcast
(2)android.content.Context.startActivity

 : Which of these is the correct explanation regarding the following methods?
1. Both methods are defined by overloading

2. Both methods throw an exception.

3. Access Mostly Uused Products by 50000+ Subscribers

4. Both methods are able to broadcast an Intent.