Free AND-401 Exam Braindumps
Android Application Development Questions 71–75 (page: 16)

Updated On: 9-Feb-2026

What is not true about the AndroidManifest.xml file?

  1. It declares the views used within the application
  2. It declares user permissions the application requires
  3. It declares application components
  4. It declares hardware and software features used within the application

Answer(s): A

Explanation:

Among other things, the manifest does the following:
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 describes the components of the application — the activities, services, broadcast receivers, and content providers that the application is composed of.
It declares the minimum level of the Android API that the application requires.


Reference:

http://developer.android.com/guide/topics/manifest/manifest-intro.html



If your application is throwing exception android.content.ActivityNotFoundException, which of the following could resolve the problem?

  1. Create a new sub-class of the View class.
  2. Create a new broadcast receiver
  3. Create the activity layout
  4. Add the activity to the AndroidManifest.xml

Answer(s): D

Explanation:

The ActivityNotFoundException is thrown when a call to startActivity(Intent) or one of its variants fails because an Activity cannot be found to execute the given Intent.


Reference:

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



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?

  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. It starts any activity in the application that has a WebView in its layout.
  4. When it is executed, the system starts an intent resolution process to start the right Activity.

Answer(s): D



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 <application> tag.
  3. Declares a single hardware or software feature that is used by the application.
  4. Has an attribute that specifies the name of the Activity sub-class that implements the activity.

Answer(s): C

Explanation:

Incorrect:
A: An activity is a single, focused thing that the user can do. Almost all activities interact with the user, so the Activity class takes care of creating a window for you in which you can place your UI with setContentView (View).
B, D: Example:
<application . . .>
<activity android:name="com.example.project.FreneticActivity" android:permission="com.example.project.DEBIT_ACCT"
. . . >
. . .
</activity>


Reference:

http://developer.android.com/reference/android/app/Activity.html



Which of these is NOT recommended in the Android Developer's Guide as a method of creating an individual View?

  1. Create by extending the android.view.View class.
  2. Create by extending already existing View classes such as Button or TextView.
  3. Create by copying the source of an already existing View class such as Button or TextView
  4. Create by combining multiple Views.

Answer(s): C

Explanation:

Incorrect:
A, B: 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.
D: When building complex applications, you'll often want to reuse the same group of views in various places of the application. One way to solve this problem is by creating a view that encapsulates the logic and layout of a group of views so you can reuse them without duplicating code in various places of the project.


Reference:

http://developer.android.com/training/custom-views/create-view.html http://code.tutsplus.com/tutorials/creating-compound-views-on-android--cms-22889



Viewing page 16 of 47
Viewing questions 76 - 80 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!