title: SMS intent not opening in android
body: <p>I am working on android application in which i am using SMS functionality. For this i am using intent to start an activity for native sms functionality. </p>
  
  <p>My code is given below, but it gives me the following exception when it:</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>Intent intent_sms = new Intent(Intent.ACTION_MAIN);
  intent_sms.setType("vnd.android-dir/mms-sms");
  int flags = Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_SINGLE_TOP |Intent.FLAG_ACTIVITY_CLEAR_TOP;
  intent_sms.setFlags(flags);
  intent_sms.setData(Uri.parse("content://sms/inbox"));
  startActivity(intent_sms);
  </code></pre>
  
  <p><strong>Error Log:</strong></p>
  
  <pre><code>01-17 07:40:41.261: E/AndroidRuntime(7674): 
  android.content.ActivityNotFoundException: 
  No Activity found to handle Intent { act=android.intent.action.MAIN 
  dat=content://sms/inbox flg=0x34000000 }
  </code></pre>