jump To System Share Image Activity - Android Activity

Android examples for Activity:Activity Jump

Description

jump To System Share Image Activity

Demo Code


//package com.java2s;

import android.content.Context;
import android.content.Intent;

public class Main {
    public static void jumpToSystemShareImage(Context context,
            String imageUri) {//from  ww w .j  a  va  2  s  .  c  om
        Intent shareIntent = new Intent();
        shareIntent.setAction("android.intent.action.SEND");
        shareIntent.putExtra("android.intent.extra.STREAM", imageUri);
        shareIntent.setType("image/*");
        context.startActivity(shareIntent);
    }
}

Related Tutorials