Code example for Bundle

Methods: putParcelable

        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. 
Stop searching for code, let great code find you!  Add Codota to your java IDE