1. Download our Official Android App: Forums for Android!

Send Image and Text Intent.ACTION_SEND

Discussion in 'Android Help' started by Android Question, Feb 7, 2014.

  1. Android Question

    Thread Starter
    Rank:
    None
    Posts:
    0
    Joined:

    Please refer my code below :

    i want to send IMAGE and text using Intent.ACTION_SEND

    Intent shareIntent = new Intent(Intent.ACTION_SEND);
    shareIntent.putExtra(Intent.EXTRA_TEXT, userMessage);
    shareIntent.putExtra(Intent.EXTRA_STREAM, uri);
    shareIntent.setType("*/*");
    startActivity(Intent
    .createChooser(
    shareIntent,
    "Share using..."));
     

    Advertisement

Share This Page

Loading...