Free AND-401 Exam Braindumps
Android Application Development Questions 51–55 (page: 12)

Updated On: 9-Feb-2026

When using an implicit intent, what process does the system use to know what to do with it?

  1. Intent resolution
  2. Intent declaration
  3. Intent overloading
  4. Intent transition

Answer(s): A

Explanation:

When using implicit intents, given such an arbitrary intent we need to know what to do with it. This is handled by the process of Intent resolution, which maps an Intent to an Activity, BroadcastReceiver, or Service (or sometimes two or more activities/receivers) that can handle it.
The intent resolution mechanism basically revolves around matching an Intent against all of the <intent-filter> descriptions in the installed application packages.


Reference:

http://developer.android.com/reference/android/content/Intent.html



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

  1. The MenuItem instance will be returned by the Menu class add(...) method.
  2. MenuItem can decide the Intent issued when clicking menu components.
  3. MenuItem can display either an icon or text.
  4. MenuItem can set a checkbox.

Answer(s): C

Explanation:

Both an icon and text can be displayed.
The <item> element supports several attributes you can use to define an item's appearance and behavior. The items in the above menu include the following attributes:
android:id
A resource ID that's unique to the item, which allows the application to recognize the item when the user selects it.
android:icon
A reference to a drawable to use as the item's icon.
android:title
A reference to a string to use as the item's title.
Incorrect:
B: Adding Menu Items Based on an Intent
Sometimes you'll want a menu item to launch an activity using an Intent (whether it's an activity in your application or another application). When you know the intent you want to use and have a specific menu item that should initiate the intent, you can execute the intent with startActivity() during the appropriate on-itemselected callback method (such as the onOptionsItemSelected() callback).
However, if you are not certain that the user's device contains an application that handles the intent, then adding a menu item that invokes it can result in a non-functioning menu item, because the intent might not resolve to an activity. To solve this, Android lets you dynamically add menu items to your menu when Android finds activities on the device that handle your intent.


Reference:

http://developer.android.com/guide/topics/ui/menus.html



Which of the following is correct about XML layout files?

  1. 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".
  2. There is no distinction between implementation of the layout definition by code, or by XML layout file.
  3. In an Eclipse project using the ADT plugin, the XML layout file is found in the /res/layout directory.
  4. Layout information written in the XML layout file will be converted into code by the Android platform when the screen is displayed.

Answer(s): C



The DalvikVM core libraries are a subset of which of the following?

  1. Java ME
  2. Java SE
  3. Java EE
  4. JAX-WS

Answer(s): B

Explanation:

Dalvik is a discontinued process virtual machine (VM) in Google's Android operating system that executes applications written for Android. Dalvik is compiled with JAVA SE.


Reference:

https://en.wikipedia.org/wiki/Dalvik_(software)



Which of the following is correct about file access in the Android system?

  1. Generally, files are handled as dedicated resources per each application.
  2. Files created by an application can be directly accessed by any application.
  3. The content of file created by application cannot be accessed by any other application.
  4. You can only access a file from within an Activity.

Answer(s): A



Viewing page 12 of 47
Viewing questions 56 - 60 out of 228 questions


Post your Comments and Discuss Android AND-401 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!