What is not true about the AndroidManifest.xml file?
Answer(s): A
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.
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?
Answer(s): D
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.
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?
Which of the following is not true about <activity> tag in AndroidManifest file?
Answer(s): C
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>
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?
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.
http://developer.android.com/training/custom-views/create-view.html http://code.tutsplus.com/tutorials/creating-compound-views-on-android--cms-22889
Post your Comments and Discuss Android AND-401 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the AND-401 content, but please register or login to continue.