jump To System Share Images Activity - Android Activity

Android examples for Activity:Activity Jump

Description

jump To System Share Images Activity

Demo Code


//package com.java2s;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;

import java.util.ArrayList;

public class Main {
    public static void jumpToSystemShareImages(Context context,
            ArrayList<Uri> imageUris) {
        Intent shareIntent = new Intent();
        shareIntent.setAction("android.intent.action.SEND_MULTIPLE");
        shareIntent.putParcelableArrayListExtra(
                "android.intent.extra.STREAM", imageUris);
        shareIntent.setType("image/*");
        context.startActivity(shareIntent);
    }/*  www.  ja  v a  2  s . c o m*/
}

Related Tutorials