Search in sources :

Example 1 with Bundle

use of android.os.Bundle in project android-betterpickers by code-troopers.

the class TimePickerDialogFragment method newInstance.

/**
     * Create an instance of the Picker (used internally)
     *
     * @param reference  an (optional) user-defined reference, helpful when tracking multiple Pickers
     * @param themeResId the style resource ID for theming
     * @return a Picker!
     */
public static TimePickerDialogFragment newInstance(int reference, int themeResId) {
    final TimePickerDialogFragment frag = new TimePickerDialogFragment();
    Bundle args = new Bundle();
    args.putInt(REFERENCE_KEY, reference);
    args.putInt(THEME_RES_ID_KEY, themeResId);
    frag.setArguments(args);
    return frag;
}
Also used : Bundle(android.os.Bundle)

Example 2 with Bundle

use of android.os.Bundle in project UltimateAndroid by cymcsg.

the class SuperAwesomeCardFragment method newInstance.

public static SuperAwesomeCardFragment newInstance(int position) {
    SuperAwesomeCardFragment f = new SuperAwesomeCardFragment();
    Bundle b = new Bundle();
    b.putInt(ARG_POSITION, position);
    f.setArguments(b);
    return f;
}
Also used : Bundle(android.os.Bundle)

Example 3 with Bundle

use of android.os.Bundle in project kickmaterial by byoutline.

the class CategoriesListActivity method launch.

public static void launch(@Nonnull Activity context, @Nonnull Category category, View sharedElement) {
    final Bundle options = KickMaterialBaseActivity.getSharedElementsBundle(context, sharedElement);
    Intent intent = new Intent(context, CategoriesListActivity.class);
    intent.putExtra(ARG_CATEGORY, Parcels.wrap(category));
    ActivityCompat.startActivityForResult(context, intent, DEFAULT_REQUEST_CODE, options);
}
Also used : Bundle(android.os.Bundle) Intent(android.content.Intent)

Example 4 with Bundle

use of android.os.Bundle in project android by cSploit.

the class DirectoryPicker method onActivityResult.

@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (requestCode == PICK_DIRECTORY && resultCode == RESULT_OK) {
        Bundle extras = data.getExtras();
        String path = (String) (extras != null ? extras.get(DirectoryPicker.CHOSEN_DIRECTORY) : null);
        returnDir(path);
    }
}
Also used : Bundle(android.os.Bundle)

Example 5 with Bundle

use of android.os.Bundle in project glide by bumptech.

the class FlickrPhotoGrid method newInstance.

public static FlickrPhotoGrid newInstance(int size, int preloadCount, boolean thumbnail) {
    FlickrPhotoGrid photoGrid = new FlickrPhotoGrid();
    Bundle args = new Bundle();
    args.putInt(IMAGE_SIZE_KEY, size);
    args.putInt(PRELOAD_KEY, preloadCount);
    args.putBoolean(THUMBNAIL_KEY, thumbnail);
    photoGrid.setArguments(args);
    return photoGrid;
}
Also used : Bundle(android.os.Bundle)

Aggregations

Bundle (android.os.Bundle)6155 Intent (android.content.Intent)826 RemoteException (android.os.RemoteException)477 View (android.view.View)342 Test (org.junit.Test)266 ArrayList (java.util.ArrayList)216 TextView (android.widget.TextView)203 PersistableBundle (android.os.PersistableBundle)201 PendingIntent (android.app.PendingIntent)185 IOException (java.io.IOException)176 Uri (android.net.Uri)155 ImageView (android.widget.ImageView)152 ComponentName (android.content.ComponentName)124 Fragment (android.support.v4.app.Fragment)124 Message (android.os.Message)122 JSONObject (org.json.JSONObject)112 Account (android.accounts.Account)108 Context (android.content.Context)102 Parcelable (android.os.Parcelable)99 Bitmap (android.graphics.Bitmap)90