Android
AND-401 · Question #127
AND-401 Question #127: Real Exam Question with Answer & Explanation
Sign in or unlock AND-401 to reveal the answer and full explanation for question #127. The question stem and answer options stay visible for context.
Question
Consider the following AndroidManifest.xml file: <?xml version="1.0" encoding="utf-8"?> package="mycube.test" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@android:style/Theme.Light.NoTitleBar" > <activity android:name=".Menu" android:screenOrientation="portrait" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> <uses-permission android:name="android.permission.INTERNET"></uses- permission> <activity android:name=".Compute" android:screenOrientation="portrait" /> </manifest> What is the syntax error of this file?
Options
- AThe INTERNET permission must be removed.
- BTag uses-sdk must have attribute android:maxSdkVersion set.
- Cthe package name must be "com.mycube.test".
- DThe <activity> tag for Activity ".Compute" should be contained inside <application> tag.
Unlock AND-401 to see the answer
You've previewed enough free AND-401 questions. Unlock AND-401 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.