Which of the following methods is called in an Activity when another activity gets into the foreground?
Android ยท AND-801
AND-801 questions and answers
Review the question wording, option layout, and available explanations before choosing a study plan.
|
Single choice
Single choice
Check the following image which includes a code that runs when the user clicks on the button (id =button). ![]() Which countries are in North America?" Select one of the following choices, where the result will appear when the app user clicks the button.
Single choice
Which of these is not defined as a process state?
Single choice
If your Android application creates a SQLite database, which of the following is the default directory to save this database file?
Single choice
Consider the following code snippet: String[] result_columns = new String[]{KEY_ID, COL1, COL2}; Cursor allRows = myDatabase.query(true, DATABASE_TABLE, result_columns, null,null,null,null,null,null); Which of the following prints out the values of COL1 column correctly if the result is not empty?
Single choice
Which of the following is not a valid Android resource file name?
Single choice
What does the following code achieve? Intent intent = new Intent(FirstActivity.this, SecondActivity.class); startActivityForResult(intent);
Single choice
During an Activity life-cycle, what is the first callback method invoked by the system?
Single choice
Which is the correct explanation of ListView?
Single choice
Which of the following choices is the main role of the Preview button which is illustrated in the red circle of the vertical Android Studio tool bar? ![]()
Single choice
What is the name of the folder that contains the R.java file?
Single choice
Check the following image which includes a part of activity_main.xml file of an Android application. Which of the following choices is correct about this code? ![]()
Single choice
Which Which of the following does NOT correctly describe interface android.widget.Adapter?
Single choice
Which of these is the correct function of Traceview?
Single choice
Android SDK platform is a set of libraries and APIs that provide necessary classes, methods and interfaces to develop Android applications and allow you to compile your code.
Single choice
What are the main two types of thread in Android?
Single choice
Which of the following is a Java call-back method invoked when a view is clicked?
Single choice
Which of the following is NOT true about method getWindow() of class Dialog do?
Single choice
Check the following image which includes Android code for a sum calculator. Which of the following choices is correct about this Android code? ![]()
Multiple choice
Which of the following a Notification object must contain? (Choose three)
Multiple choice
Which of the following is true about implicit intents? (Choose two)
Single choice
Which of the following lines of codes adds zoom controls to a WebView?
Single choice
Which method should you use to start a sub-activity?
Multiple choice
Which of the following is NOT true about SQLiteOperHelper class? (Choose two)
Single choice
Which method is used to close an activity?
Single choice
Consider the following : <?xml version="1.0" encoding="utf-8"?> <menu xmlns:android="http://schemas.android.com/apk/res/android"> <item android:id="@+id/create_new" android:title="@string/create_new" /> <item android:id="@+id/open" android:title="@string/open" /> </menu> public boolean onOptionsItemSelected(MenuItem item) { switch (item.getItemId()) { case R.id.create_new: newFile(); return true default: return super.onOptionsItemSelected(item); } Upon clicking on one of the menu items, the application did not behave as intended. Which of the following might be the cause of this problem?
Single 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.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? |



