Its a generic button onClick event handler. The switch is there to allow you to test which button was clicked. It has one single case which tests for the about_button. if it was pressed then it creates a new intent (looks like it may be an About box or something) and starts it. In summary it shows an about box if the user presses the about button.
This is an event handler that is called to initialise the options menu for the activity that it is defined in and the inflate method creates the menu from the R.menu.menu resource; The MenuInflator instantiates menus from the XML that define them
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.