Code example for Bundle

Methods: putParcelable

0
        if (startingFragment != null && !onIsMultiPane()) {
            Intent modIntent = new Intent(superIntent);
            modIntent.putExtra(EXTRA_SHOW_FRAGMENT, startingFragment);
            Bundle args = superIntent.getExtras();
            if (args != null) {
                args = new Bundle(args);
            } else { 
                args = new Bundle();
            } 
            args.putParcelable("intent", superIntent);
            modIntent.putExtra(EXTRA_SHOW_FRAGMENT_ARGUMENTS, superIntent.getExtras());
            return modIntent;
        } 
        return superIntent;
    } 
 
    /** 
     * Checks if the component name in the intent is different from the Settings class and 
     * returns the class name to load as a fragment. 
     */ 
    protected String getStartingFragmentClass(Intent intent) {