Consider the following code:Intent i = new Intent(this, MainActivity.class); i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); startActivity(i);What best explains the code above?
Answer(s): A
Which of the following lines of code is used to pass a value to the next activity?
Answer(s): D
Which of the following sets the entire Activity window as a WebView?
Answer(s): C
Consider the following the code:public boolean onCreateOptionsMenu(Menu menu) { MenuInflater inflater = getMenuInflater(); inflater.inflate(R.menu.game_menu, menu);return true;}Which of the following is true about the code above?
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?
The program will compile, but then it will not be able to access the internet, as it does not have usespermission=” android.permission.INTERNET”
Post your Comments and Discuss Android AND-401 exam prep with other Community members:
Our website is free, but we have to fight against AI bots and content theft. We're sorry for the inconvenience caused by these security measures. You can access the rest of the AND-401 content, but please register or login to continue.