title: Android SMS Intent Hangouts 2.0
body: <p>As of Hangouts 2.0 Google have broken (or undocumented) how to send SMS body from third party apps via Intent.</p>
  
  <p>This renders Sending SMS via an intent from your app on 4.4 completely broken.</p>
  
  <p>The following Intents do not work:</p>
  
  <pre><code>Intent smsIntent = new Intent(Intent.ACTION_SENDTO);
  smsIntent.setType("vnd.android-dir/mms-sms");
  smsIntent.putExtra("address", "12125551212");
  smsIntent.putExtra("sms_body","Body of Message");\
  </code></pre>
  
  <p>And</p>
  
  <pre><code>Intent sendIntent = new Intent(Intent.ACTION_SENDTO);         
  sendIntent.setData(Uri.parse("sms:"));
  sendIntent.putExtra("sms_body", x); 
  </code></pre>
  
  <p>Hangouts completely ignores <code>setType("vnd.android-dir/mms-sms")</code></p>
  
  <p>Falling back to the <code>Uri.parse</code> method is the only option, but the app still ignores <code>sms_body</code> key.</p>
  
  <p>At this point in time its undocumented so playing around with a few variations of <code>%body%</code> to no fruition.</p>
  
  <p>Worth noting we tried <a href="http://www.ietf.org/rfc/rfc5724.txt" rel="nofollow">http://www.ietf.org/rfc/rfc5724.txt</a> to create a URI as per the spec.
  <code>sms:12345666777?body=Text here</code> but no help there.</p>
  
  <p>*Note: I was using ACTION_VIEW, changed to ACTION_SENDTO, still to no avail*</p>