Android Intent Create shareImages(Activity activity, String imagePath)

Here you can find the source of shareImages(Activity activity, String imagePath)

Description

share Images

Declaration

public static void shareImages(Activity activity, String imagePath) 

Method Source Code

//package com.java2s;

import android.app.Activity;
import android.content.Intent;

import android.net.Uri;

public class Main {
    public static void shareImages(Activity activity, String imagePath) {
        Intent intent = new Intent(Intent.ACTION_SEND);
        intent.setType("image/png");
        intent.putExtra(Intent.EXTRA_STREAM, Uri.parse(imagePath));
        activity.startActivity(intent);//  ww w.j a va 2  s  .co  m
    }
}

Related

  1. getSysAppDetailIntent(Context context)
  2. getSysAppSearchIntent(String key)
  3. intentAvailable(Context context, Intent intent)
  4. intentFromByteArray(byte[] byteArray)
  5. newXdiPlayIntent()
  6. pickNcapture(Activity activity, Uri outputFileUri)
  7. organizeAndStart(Activity activity, Class classes, Map paramMap)
  8. onKeyBackGoHome(Activity activity, int keyCode, KeyEvent event)
  9. makeCall(Activity activity, String telNumber)