Which of the following is true about this code snippet? (Choose two) Intent intent = new Intent(Intent.ACTION_DIAL,Uri.parse("tel:555-1234")); startActivity(intent);
A. This is an explicit intent that start the system's dialer.
B. The system will not dial the number without adding permission CALL_PHONE.
C. The system will perform an intent resolution to start the proper activity.
D. The code will not compile.
Which of the following is NOT true about method getWindow() of class Dialog do?
A. It retrieves the current window for the activity.
B. It can be used to access parts of the Windows API.
C. It displays the dialog on the screen.
D. It returns null if the activity is not visual.
Which of the following is NOT true about onMeasure() method of class View?
A. It measures the view and its contents to determine the measured width and height.
B. It is invoked by measure().
C. The When overriding this method, a developer must call setMeasuredDimension().
D. It takes three parameters: the height, width, and the depth of the view.
Which Which of the following does NOT correctly describe interface android.widget.Adapter?
A. It is an object that acts as a bridge between a View and underlying data for that view.
B. It provides access to the data items.
C. It provides access to deprecated ListView methods.
D. It is responsible for making a View for each item in the data set.
Which of the following is a correct Android Manifest statement?
A.
B.
C.
D.
Which of the following classes is used by Intent to transfer data between different android components?
A. Extras
B. Bundle
C. Parcelable
D. PendingIntent
Which of the following is true about the Dialog class? (Choose two)
A. You can add a custom layout to a dialog using setContentView().
B. A dialog has a life-cycle independent of the Activity.
C. A dialog is displayed on the screen using method show().
D. It does not have a method to access the activity that owns it.
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?
A. if (cursor.moveToFirst()) {do {System.out.println(cursor.getString(1));}while (cursor.moveToNext()); }
B. do {System.out.println(cursor.getString(0));}while (cursor.moveToNext());
C. if (cursor.moveToFirst()) {do {System.out.println(cursor.getString(0));}while (cursor.moveToNext()); }
D. if (cursor != null) {do {System.out.println(cursor.getString(1));}while (!cursor.isNull()); }
What Activity method you use to retrieve a reference to an Android view by using the id attribute of a resource XML?
A. findViewByReference(int id)
B. findViewById(int id)
C. retrieveResourceById(int id)
D. findViewById(String id)
Which of the following applies to the onDraw() method of class View? (Choose two)
A. It must be overridden if a customize drawing of a view is required.
B. It takes two parameters: a Canvas and a View.
C. It takes one parameter of type Canvas.
D. It uses the Canvas parameter to draw the border of the activity that contains it.
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.