Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Exam Associate-Android-Developer Topic 4 Question 50 Discussion

Actual exam question for Google's Associate-Android-Developer exam
Question #: 50
Topic #: 4
[All Associate-Android-Developer Questions]

For example, we have a file in our assets folder app/src/main/assets/sample_teas.json. To get an InputStream for reading it, from out Context context, we can try do this:

Show Suggested Answer Hide Answer

Contribute your Thoughts:

Celeste
1 years ago
Hmm, I was leaning towards A at first, but I think C is the better answer. It makes sense to have the less important items in the overflow menu to keep the app bar clean and uncluttered.
upvoted 0 times
Christiane
12 months ago
C) Never place this item in the app bar. Instead, list the item in the app bar's overflow menu.
upvoted 0 times
...
Verona
12 months ago
A) Only place this item in the app bar if there is room for it. If there is not room for all the items marked by this value, the items with the lowest orderInCategory values are displayed as actions, and the remaining items are displayed in the overflow menu.
upvoted 0 times
...
...
Emogene
1 years ago
Yeah, I think C is the correct answer too. I like how the question is specific about the meaning of the 'never' value. It's a good way to test our understanding of the Android app bar and menu item behavior.
upvoted 0 times
...
Casie
1 years ago
I agree with Janessa. Having the menu item in the overflow menu makes sense if it's not critical to always display it in the app bar. That way, it's still accessible to the user, but doesn't take up valuable space in the app bar.
upvoted 0 times
...
Janessa
1 years ago
Hmm, this is an interesting question. I think the answer is C - Never place this item in the app bar. Instead, list the item in the app bar's overflow menu. The 'never' value for the 'app:showAsAction' attribute means that the menu item should never be shown as an action in the app bar, but rather in the overflow menu.
upvoted 0 times
...

Save Cancel