To add a new Activity to your application, you need to perform the following steps:
A. Create a Java class that extends View, set a layout, and add an Activity tag in AndroidManifest.xml.
B. Create layout resource only.
C. Create a Java class that extends Activity, add an Activity tag in AndroidManifest.xml, and create a layout for the activity.
D. Add an Activity tag to AndroidManifest.xml, and add ACTIVITY permission.
Which method is used to close an activity?
A. Destroy()
B. Finish()
C. Stop()
D. Close()
Which of the following is a valid sequence of invokes to Activity lifecycle methods? (Choose two)
A. onCreate > onStart > onResume > onPause> onStop> onCreate
B. onCreate > onStart > onResume > onPause> onStop>onRestart
C. onCreate > onStart > onResume > onPause> onStop>onDestroy
D. onCreate > onStart > onResume > onPause> onStop>onResume
Which of the following is a rule that developers must always follow when writing multi- threaded Android applications? (Choose two)
A. A worker thread must not be created from inside the UI thread.
B. Each UI thread must not create more than one worker thread.
C. The UI thread must never be blocked.
D. The Android UI must not be accessed from outside the UI thread.
Which method should you use to start a sub-activity?
A. startActivity(Intent intent)
B. startActivityForResult(Intent intent)
C. startService(Intent intent)
D. startSubActivity(Intent intent)
Consider the following code :
@Override
public void onCreateContextMenu(ContextMenu menu, View v,
ContextMenuInfo menuInfo) {
super.onCreateContextMenu(menu, v, menuInfo);
menu.setHeaderTitle("Menu");
AdapterContextMenuInfo cmi = (AdapterContextMenuInfo) menuInfo;
menu.add(1, cmi.position, 0, "Open file");
menu.add(2, cmi.position, 0, "Save file");}
Which of the following best explains the code above?
A. The code inflates an xml file into menu items.
B. The code creates menu items for context menu programmatically.
C. The code assign actions to menu items.
D. The code Opens a menu resource file, modifies it, and saves the changes.
Which of the following WebView methods allows you to manually load custom HTML markup?
A. loadData
B. loadHTML
C. loadCustomData
D. loadCustomHTML
What does the following line of code do?
Toast toast = Toast.makeText(this,"Android ATC", Toast.LENGTH_LONG);
toast.setGravity(Gravity.TOP|Gravity.RIGH, 0, 0);
A. The toast will have it UI components place on the top-right corner.
B. The toast will appear on the top-right corner.
C. The toast will show the text message on top-right corner of the toast box.
D. The toast will appear at the center of the screen at position (0,0), but aligned to the top- right corner.
What Eclipse plug-in is required to develop Android application?
A. J2EE
B. Android Software Development Kit
C. Android Development Tools
D. Web Development Tools
What two methods you have to override when implementing Android context menus?
A. onCreateOptionsMenu, onCreateContextMenu
B. onCreateContextMenu, onContextItemSelected
C. onCreateOptionsMenu, onOptionsItemSelected
D. onCreateOptionsMenu, onContextItemSelected
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Android exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your AND-801 exam preparations and Android certification application, do not hesitate to visit our Vcedump.com to find your solutions here.