Exam AND-401 All QuestionsBrowse all questions from this exam
Question 94

Consider the following AndroidManifest.xml file:

android:icon="@drawable/ic_launcher"

android:label="@string/app_name" >

android:name=".WebViewActivity"

android:theme="@android:style/Theme.NoTitleBar" >

Supposing the application connects to the internet at startup, which of the following is true?

    Correct Answer: A

    The application will compile successfully because the AndroidManifest.xml syntax is correct. However, it will fail to access the internet during runtime because it lacks the necessary 'android.permission.INTERNET' permission. This will lead to an exception indicating that the application does not have the required permission to access the URL.

Discussion
MmadiOption: C

C. The application won’t compile