Premium

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



Question : If your application is throwing exception android.content.ActivityNotFoundException, how to fix it?

 : If your application is throwing exception android.content.ActivityNotFoundException, how to fix it?
1. Create a new activity Java sub-class.

2. Rename your activity

3. Access Mostly Uused Products by 50000+ Subscribers

4. Add the activity to the AndroidManifest

Correct Answer : Get Lastest Questions and Answer :
Explanation: When application throw this exception, Maybe you need to check that you added the new activity to the manifest.xml file




Question : Consider the following code:
Intent intent = new Intent();
intent.setAction(Intent.ACTION_VIEW);
intent.setData(android.net.Uri.parse("http://www.androidatc.com"));
startActivity(intent);
Which of the following is correct about the code above?

 : Consider the following code:
1. It sends a result to a new Activity in a Bundle.

2. It will not compile without adding the INTERNET permission the Manifest file.

3. Access Mostly Uused Products by 50000+ Subscribers

4. When it is executed, the system starts an intent resolution process to start the right Activity.

Correct Answer : Get Lastest Questions and Answer :
Explanation: When the system receives an implicit intent to start an activity, it searches for the best activity for the intent by comparing the intent to intent filters based on three aspects:

The intent action
The intent data (both URI and data type)
The intent category
The following sections describe how intents are matched to the appropriate component(s) in terms of how the intent filter is declared in an app's manifest file.




Question : Which of the following is not true about tag in AndroidManifest file?

 : Which of the following is not true about <activity> tag in AndroidManifest file?
1. Declares an activity that implements part of the application's visual user interface

2. Contained in tag.

3. Access Mostly Uused Products by 50000+ Subscribers

4. Has an attribute that specifies the name of the Activity sub-class that implements the activity

Correct Answer : Get Lastest Questions and Answer :
Explanation: android:allowTaskReparenting=["true" | "false"]
android:alwaysRetainTaskState=["true" | "false"]
android:autoRemoveFromRecents=["true" | "false"]
android:banner="drawable resource"
android:clearTaskOnLaunch=["true" | "false"]
android:configChanges=["mcc", "mnc", "locale",
"touchscreen", "keyboard", "keyboardHidden",
"navigation", "screenLayout", "fontScale",
"uiMode", "orientation", "screenSize",
"smallestScreenSize"]
android:documentLaunchMode=["intoExisting" | "always" |
"none" | "never"]
android:enabled=["true" | "false"]
android:excludeFromRecents=["true" | "false"]
android:exported=["true" | "false"]
android:finishOnTaskLaunch=["true" | "false"]
android:hardwareAccelerated=["true" | "false"]
android:icon="drawable resource"
android:label="string resource"
android:launchMode=["multiple" | "singleTop" |
"singleTask" | "singleInstance"]
android:maxRecents="integer"
android:multiprocess=["true" | "false"]
android:name="string"
] >
. . .



Related Questions


Question : Which of the following is a valid sequence of invokes to Activity lifecycle methods? (Select Two)
A. onCreate > onStart > onResume > onPause> onStop> onCreate
B. onCreate > onStart > onResume > onPause> onStop>onRestart
C. onCreate > onStart > onResume > onPause> onStop>onDestroy
D. onCreate > onStart > onResume > onPause> onStop>onResume
 : Which of the following is a valid sequence of invokes to Activity lifecycle methods? (Select Two)
1. A,B
2. B,C
3. C,D
4. A,D


Question : Which of the following is true about this code snippet? (Choose two)

Intent intent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:555-1234"));
startActivity(intent);

A. This is an explicit intent that start the system's dialer.
B. The system will not dial the number without adding permission CALL_PHONE.
C. The system will perform an intent resolution to start the proper activity.
D. The code will not compile.
 : Which of the following is true about this code snippet? (Choose two)
1. A,B
2. B,C
3. C,D
4. A,D
5. A,D


Question : Which of the following are layout-related methods called by the framework on views, and you can override them when customizing a view? (Choose two)

A. onMeasure().
B. onDraw().
C. onKeyUp().
D. onSizeChanged().
 : Which of the following are layout-related methods called by the framework on views, and you can override them when customizing a view? (Choose two)
1. A,B
2. B,C
3. C,D
4. A,D


Question : Which of the following is a rule that developers must always follow when writing multi-threaded Android applications? (Choose two)

A. A worker thread must not be created from inside the UI thread.
B. Each UI thread must not create more than one worker thread.
C. The UI thread must never be blocked.
D. The Android UI must not be accessed from outside the UI thread.
 : Which of the following is a rule that developers must always follow when writing multi-threaded Android applications? (Choose two)
1. A,B
2. B,C
3. C,D
4. A,D


Question : Which of the following is NOT true about SQLiteOperHelper class? (Choose two)

A. It has two abstract methods: onCreate() and onUpgrade().
B. It is used to perform database querying.
C. It manages database creation and updates.
D. It manages database versions using ContentProvider
 : Which of the following is NOT true about SQLiteOperHelper class? (Choose two)
1. A,B
2. B,C
3. C,D
4. A,D
5. A,C


Question : What method you should override to use Android menu system?

 : What method you should override to use Android menu system?
1. onCreateOptionsMenu()

2. onCreateMenu()

3. onMenuCreated()

4. onCreateContextMenu()