Podcast
Questions and Answers
Where are menus situated in an Android activity?
Where are menus situated in an Android activity?
- Left top corner
- Center of the screen
- Right top corner (correct)
- Bottom right corner
Which method is used to create menu items in Android?
Which method is used to create menu items in Android?
- onMenuSelected
- onCreateOptionsMenu (correct)
- onCreateLayout
- onOptionsItemSelected
What does an AlertDialog in Android typically provide?
What does an AlertDialog in Android typically provide?
- Confirmation from the user (correct)
- A way to display images
- A text input field
- A list of options to choose from
Which method is triggered when a menu item is selected in Android?
Which method is triggered when a menu item is selected in Android?
What does an AlertDialog in Android ask the user for?
What does an AlertDialog in Android ask the user for?
What is the purpose of the AlertDialog in the provided code snippet?
What is the purpose of the AlertDialog in the provided code snippet?
What does the setCancelable(false) method do in the AlertDialog creation process?
What does the setCancelable(false) method do in the AlertDialog creation process?
What is the purpose of the setPositiveButton method in the AlertDialog creation process?
What is the purpose of the setPositiveButton method in the AlertDialog creation process?
In what scenario would you use a Toast notification instead of an AlertDialog?
In what scenario would you use a Toast notification instead of an AlertDialog?
What event triggers the display of the AlertDialog in the provided code?
What event triggers the display of the AlertDialog in the provided code?