PrepAway - Latest Free Exam Questions & Answers

which of the following is true?

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.mkyong.android”
android:versionCode=”1″
android:versionName=”1.0″ >
<uses-sdk android:minSdkVersion=”10″ />
<uses-permission android:name=”android.permission.WebActivity ” />
<application
android:icon=”@drawable/ic_launcher”
android:label=”@string/app_name” >
<activity
android:name=”.WebViewActivity”
android:theme=”@android:style/Theme.NoTitleBar” >
<intent-filter >
<action android:name=”android.intent.action.MAIN” />
<category android:name=”android.intent.category.LAUNCHER” />
</intent-filter>

</activity>
</application>
</manifest>
Supposing the application connects to the internet at startup, which of the following is true?

PrepAway - Latest Free Exam Questions & Answers

A.
The application throws an exception indicating it does not have permission to access the URL

B.
The application will work as intended

C.
The application won’t compile

D.
The application throws a java.lang.SecurityException

2 Comments on “which of the following is true?

  1. Maz says:

    My Answer: A

    some answers say C but it will compile, and then you cant access the internet if you dont have uses-permission=”android.permission.INTERNET” so i think its A not C.


Leave a Reply

Your email address will not be published. Required fields are marked *