Code example for FragmentActivity

Methods: finish

                    // with a synthesized back stack. 
                            // If there are ancestor activities, they should be added here. 
                } else { 
                    // This activity is part of the application's task, so simply 
                    // navigate up to the hierarchical parent activity. 
                    NavUtils.navigateUpTo(this, upIntent);
                return true; 
        return super.onOptionsItemSelected(item);
     * A {@link} that returns a fragment 
     * representing an object in the collection. 
Experience pair programming with AI  Get Codota for Java