Marshmallow message application is not opening
<p>I am trying to open message application from my application but I am getting ActivityNotFoundException in Marshmallow. I used the below code:</p>

<pre><code>Intent n = new Intent(Intent.ACTION_VIEW);
n.setType("vnd.android-dir/mms-sms");
n.putExtra("address", phone);
n.putExtra("sms_body", " ");
startActivity(n);
</code></pre>