Solved

Consider the Following AndroidManifest.xml File: ≪?xml Version="1.0" Encoding="utf-8"?>

Question 59

Multiple Choice

Consider the following AndroidManifest.xml file: <?xml version="1.0" encoding="utf-8"?>
<manifest
Xmlns:android="http://schemas.android.com/apk/res/android"   
Package="com.androidatc.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: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?


A) The INTERNET permission must be removed.
B) Tag uses-sdk  must have attribute android:maxSdkVersion set.
C) The activity under <application> tag should have the android:name property.
D) The <activity> tag for Activity ".Compute" should be contained inside <application> tag.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions