title: Android : Intent crashing the app
body: <p>I'm new to Android development.<br>
  Can anyone tell me in what conditions this code will crash my app?</p>
  
  <p>Please give me references.</p>
  
  <pre><code>Intent sendIntent = new Intent();
  sendIntent.setAction(Intent.ACTION_SEND); 
  sendIntent.putExtra(Intent.EXTRA_TEXT, textMessage); 
  sendIntent.setType(HTTP.PLAIN_TEXT_TYPE); // "text/plain" MIME type 
  startActivity(sendIntent);
  </code></pre>