Free AND-401 Exam Braindumps (page: 27)

Page 27 of 58

Which of the following is a valid sequence of invokes to Activity lifecycle methods? (Select Two)

  1. onCreate > onStart > onResume > onPause> onStop> onCreate
  2. onCreate > onStart > onResume > onPause> onStop>onRestart
  3. onCreate > onStart > onResume > onPause> onStop>onDestroy
  4. onCreate > onStart > onResume > onPause> onStop>onResume

Answer(s): B,C



Which of the following applies a context menu on a ListView (Choose two)?

  1. ListView lv = getListView();
    lv.registerForContextMenu()
  2. ListView lv = getListView();
    registerForContextMenu(lv);
  3. ListView lv = (ListView) findViewByld(R.id.list_view_id);
    registerForContextMenu(lv)
  4. getListView().setContextMenuEnabled(true)

Answer(s): B,C

Explanation:

B: The first thing to do is to register your ListView as having a context menu, using the registerForContextMenu() method. The following lines of code in your ListActivity's onCreate() method accomplish this:
ListView lv = getListView();
registerForContextMenu(lv);


Reference:

http://htc-magic-android.gb-eu.com/131/accessing-listview-items-with-a-context-menu.html http://developer.android.com/reference/android/view/ContextMenu.html



Which of the following best explains the Android context menus?

  1. It is a popup menu displays a list of items in a vertical list that’s anchored to the view that invoked the menu.
  2. It is a floating menu that appears when the user performs a long-click on an element. It provides actions that affect the selected content or context frame.
  3. It is the primary collection of menu items for an activity. It’s where you should place actions that have a global impact on the app, such as “Search”, “Compose email”, and “Settings”.
  4. It is a sub-menu of an options menu item.

Answer(s): B

Explanation:

To show a context menu on long click, most clients will want to call registerForContextMenu(View). Reference:
http://developer.android.com/reference/android/view/ContextMenu.html



Which of the following is NOT a feature provided by the Material Theme?

  1. System widgets that let you set their color palette.
  2. Adding a fragment component to layout.
  3. Activity transition animations.
  4. Touch feedback animations for the system widgets.

Answer(s): B

Explanation:

Material theme provides:
System widgets that let you set their color palette
Touch feedback animations for the system widgets
Activity transition animations


Reference:

http://developer.android.com/training/material/theme.html



Page 27 of 58



Post your Comments and Discuss Android AND-401 exam with other Community members:

MIGUEL AVELLANEDA commented on October 14, 2024
Real and accurate examples of the CSA exam.
Anonymous
upvote

CompTIA commented on October 14, 2024
These questions are valid but you can't rely on them. We do not use these questions no more. On god.
UNITED STATES
upvote

Faruk commented on October 14, 2024
This is valuable resource for Az-900, i think
Anonymous
upvote

Ramu commented on October 14, 2024
It helps the pattern of exam
Anonymous
upvote

Ramu commented on October 14, 2024
Good content
Anonymous
upvote

Royal commented on October 14, 2024
This exam dump is valid in my country. I passed. I received 97%.
Brazil
upvote

Rodrigo C. commented on October 14, 2024
Great to have full access to the Salesforce Associate Exam! Thank you!!!
ROMANIA
upvote

salma commented on October 14, 2024
i need the pdf pls someone help me !
Anonymous
upvote

Gunnyk commented on October 14, 2024
@Nmap_Lord22- How was the PBQ'S?
UNITED STATES
upvote

Gunnyk commented on October 14, 2024
Anyone pass the exam recently?
UNITED STATES
upvote

Saurabh commented on October 14, 2024
Good content
EUROPEAN UNION
upvote

leta commented on October 14, 2024
good learning
Anonymous
upvote

Likissa commented on October 14, 2024
Good Questions that makes me get prepared for the Actual PMP EXAM
Anonymous
upvote

Supreet commented on October 13, 2024
Hello manpreet, did all question came from dumps in exams
CANADA
upvote

Jay commented on October 13, 2024
Very helpful for certs
Anonymous
upvote

Asadullah commented on October 13, 2024
Good question but repeated of other sites!
UNITED STATES
upvote

Mish commented on October 13, 2024
Are those questions relative?
Anonymous
upvote

vaibgav commented on October 13, 2024
nice paper for practise
Anonymous
upvote

Essam Zahra commented on October 13, 2024
Thank you, it is very useful
EGYPT
upvote

Dennis Rono commented on October 13, 2024
The questions in here are fantastic, it would be nice to have some explanation on the choices of the right answer.
Anonymous
upvote

Dennis Rono commented on October 13, 2024
Awesome practice question
Anonymous
upvote

ileana commented on October 12, 2024
I can not access in this moc, is it available in other url?
Anonymous
upvote

edward commented on October 12, 2024
Passed with flying colors. Amazing material... came word by word.
Anonymous
upvote

Calisto MF Moniz commented on October 12, 2024
No comment for this form for the time being.
Anonymous
upvote

Calisto MF Moniz commented on October 12, 2024
Good mechanism for Security expertise practices!
Anonymous
upvote

Meraj commented on October 12, 2024
The exam is super duper hard. You use these exam dumps to only pass. If you don't have the questions it is not easy to pass.
INDIA
upvote

Lucas commented on October 12, 2024
Its so good.
Anonymous
upvote

Iwada commented on October 12, 2024
The answers and questions are valid. I believe this site trusted and anyone preparing for this exam needs to go the this materials.
Anonymous
upvote

Ramesh commented on October 12, 2024
All are very Good Questios
Anonymous
upvote

Sandy commented on October 12, 2024
I found this exam dumps questions and answers very helpful despite some questions do not have the complete answers. Overall it helped me pass.
Anonymous
upvote

P commented on October 11, 2024
So glad to have found this site
CANADA
upvote

Michal commented on October 11, 2024
I hope it will worth it
POLAND
upvote

Bannor commented on October 11, 2024
This exam is valid and legit. I purchased the full version last week and managed to pass. There are 2 or 3 wrong answers which I reported to the admin and they fixed it right away.
CANADA
upvote

Marko commented on October 11, 2024
Been using this website for a while now. I am a big fun as it has helped me pass 3 exams so far. I hope they can keep the site live.
EUROPEAN UNION
upvote