title: how do i share and save image and text together with Intent.ACTION_SEND?
body: <p>i want to save and share image with text , and im using</p>
  
  <pre><code>i.putExtra(Intent.EXTRA_TEXT, shareMessages);
  i.putExtra(Intent.EXTRA_STREAM,path);
  i.setType("image/*");
  i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
  </code></pre>
  
  <blockquote>
    <p>save image actually working !</p>
  </blockquote>
  
  <p>but the result is : 
  <code>Share Failed!</code> on device
  and </p>
  
  <pre><code>W/Bundle: Key android.intent.extra.STREAM expected Parcelable but value was a java.lang.String.  The default value &lt;null&gt; was returned.
  </code></pre>
  
  <p>in logcat</p>
  
  <p>maybe you can help me after see the full code below :</p>
  
  <pre><code>           cardTotal.setDrawingCacheEnabled(true);
              Bitmap b = cardTotal.getDrawingCache();
  
              int random = new Random().nextInt((100000 - 100)+ 1) + 100000;
  
              Long expense = getArguments().getLong("expense", 0);
              Long income = getArguments().getLong("income", 0);
              String shareMessages;
  
              File root = Environment.getExternalStorageDirectory();
  
              String path = root.toString() + "/" +textTitle.getText().toString()+random+ "mycarta.png";
  
              if (!income.equals(0L)){
                  shareMessages = "Hey i get my income from" + textTitle.getText().toString() + "\n\n" + "Download MyCarta! Make your life easier, happier!";
              }else {
                  shareMessages = "Hey i was doing " + textTitle.getText().toString() + "\n\n" + "Download MyCarta! Make your life easier, happier!";
              }
  
              try {
                  b.compress(Bitmap.CompressFormat.PNG, 95, new FileOutputStream(path));
                  System.out.println("SUCCESS============");
              } catch (FileNotFoundException e) {
                  e.printStackTrace();
                  System.out.println("ERROR==============");
              }
  
              FileInputStream finalPath = new FileInputStream(new File(path));
              finalPath.close();
  
              Intent i = new Intent();
              i.setAction(Intent.ACTION_SEND);
              i.putExtra(Intent.EXTRA_TEXT, shareMessages);
              i.putExtra(Intent.EXTRA_STREAM,path);
              i.setType("image/*");
              i.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
              startActivity(Intent.createChooser(i,"Share"));
          }
  </code></pre>
  
  <p>Any help or suggestions will be appreciate</p>