Intent putParcelableArrayListExtra - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Intent putParcelableArrayListExtra method.

This code example shows how to use the following methods:addFlags, putParcelableArrayListExtra
    public static void startActivityLogImages(final Context fromActivity, final String geocode, List<Image> logImages) {
        startActivity(fromActivity, geocode, logImages, ImageType.LogImages);
    } 
 
    private static void startActivity(final Context fromActivity, final String geocode, List<Image> logImages, ImageType imageType) {
        final Intent logImgIntent = new Intent(fromActivity, ImagesActivity.class);
        // if resuming our app within this activity, finish it and return to the cache activity 
        logImgIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET)
                .putExtra(EXTRAS_GEOCODE, geocode)
                .putExtra(EXTRAS_TYPE, imageType);
 
        // avoid forcing the array list as parameter type 
        final ArrayList<Image> arrayList = new ArrayList<Image>(logImages);
        logImgIntent.putParcelableArrayListExtra(EXTRAS_IMAGES, arrayList);
        fromActivity.startActivity(logImgIntent);
    } 
 
    public static void startActivitySpoilerImages(final Context fromActivity, String geocode, List<Image> spoilers) {
        startActivity(fromActivity, geocode, spoilers, ImageType.SpoilerImages);
    } 
8
CodeRank
This code example shows how to use the following methods:addFlags, getType, putExtra, putParcelableArrayListExtra, setAction
                        ? Uri.fromFile(screenShot) : null;
                intent = getSendMailIntent(bugreportUri, screenshotUri);
            } 
            final IActivityManager mAm = ActivityManagerNative.getDefault();
            try { 
                mAm.startActivity(null, intent, intent.getType(), null, 0, null, null, 0, false,
                        false, null, null, false); 
            } catch (RemoteException e) {
                // ignore 
            } 
        } 
    } 
 
    private Intent tryBugReporter(Uri bugreportUri) {
        final Intent intent = new Intent(SEND_BUG_INTENT_ACTION);
        intent.setData(bugreportUri);
        final IPackageManager mPm = IPackageManager.Stub.asInterface(
                ServiceManager.getService("package")); 
        if (mPm != null) {
            final List<ResolveInfo> results;

4
CodeRank

Related Intent putParcelableArrayListExtra Questions & Answers:

putParcelableArrayListExtra Method Overview
Add extended data to the intent.
See Code Examples for other Android Intent Methods: