AND-401 Exam QuestionsBrowse all questions from this exam

AND-401 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?

Show Answer
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

1 comment
Sign in to comment
MmadiOption: C
Dec 31, 2022

C. The application won’t compile