Code example for Context

Methods: startActivity

        public boolean onPerformDefaultAction() { 
            // This is called if the host menu item placed in the overflow menu of the 
            // action bar is clicked and the host activity did not handle the click. 
            return true; 
Connect your IDE to all the code out there  Get Codota for Java