Multiple Choice
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.
Correct Answer:

Verified
Correct Answer:
Verified
Q37: Consider the following: <?xml version="1.0" encoding="utf-8"?><br><menu<br>Xmlns:android="http://schemas.android.com/apk/res/android"><br><item android:id="@+id/create_new"
Q38: Javascript is enabled by default in a
Q39: What does the following line of code
Q40: Which of the following applies to the
Q41: Which of the following permission is necessary
Q43: Which of the following Activity life-cycle methods
Q44: Which of the following tools creates certificates
Q45: Which of the following Activity life-cycle methods
Q46: Which of the following you cannot achieve
Q47: Which of the following statements are correct