ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 116 - Associate Android Developer discussion

Report
Export

An overridden method onCreateOptionsMenu in an Activity returns boolean value. What does this value mean?

A.
You must return true for the menu to be displayed; if you return false it will not be shown.
Answers
A.
You must return true for the menu to be displayed; if you return false it will not be shown.
B.
You must return false for the menu to be displayed; if you return true it will not be shown.
Answers
B.
You must return false for the menu to be displayed; if you return true it will not be shown.
C.
You can return any value: the menu will be displayed anyway.
Answers
C.
You can return any value: the menu will be displayed anyway.
Suggested answer: A

Explanation:

Reference:

https://developer.android.com/guide/topics/ui/menus

asked 18/09/2024
JEROME SANANES
40 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first