title: Attach image to the Messages app programatically
body: <p>I'm develop an app use mms message of android.</p>
  
  <p>Currently I can:</p>
  
  <ol>
  <li><p>Send ssm message but not attached image by use following code:</p>
  
  <pre><code>Intent smsIntent = new Intent(Intent.ACTION_SENDTO);
  smsIntent.addCategory(Intent.CATEGORY_DEFAULT);
  smsIntent.setType("vnd.android-dir/mms-sms");
  smsIntent.putExtra("sms_body", message);
  smsIntent.setData(Uri.parse("sms:" + phoneNumber)); 
  
  ((Activity) context).startActivityForResult(smsIntent, 0);
  </code></pre></li>
  <li><p>Send attach image via third party app:</p>
  
  <pre><code>Intent mmsIntent = new Intent(Intent.ACTION_SEND);
  mmsIntent.putExtra("sms_body", "Please see the attached image");
  mmsIntent.putExtra(Intent.EXTRA_STREAM, attached_Uri);
  
  LogUtils.debug(TAG, "extension: " + extension);
  
  mmsIntent.setType(extension);
  ((Activity) context).startActivityForResult(mmsIntent, 0);
  </code></pre></li>
  </ol>
  
  <p>My problems:</p>
  
  <ol>
  <li>Can't attach image to default messaging app of android.</li>
  <li>How can i detect if default messaging app of android device ( such as tablet ) not exist.</li>
  </ol>
  
  <p>So, please guild me on this problem.</p>
  
  <p>Thanks you so much.</p>