0

I have an sms app that sends an sms intent to create a message. Previous code from january and march that once used to work now crashes when the startactivity for the intent runs. Is anyone familiar with any fixes? I did the code below for an sms-intent and it won't send the intent. It works inside the AVD, but not on my nexus 5.

Intent smsIntent = new Intent(Intent.ACTION_VIEW);
smsIntent.putExtra("sms_body", "test"); 
smsIntent.putExtra("address", "123123123");
smsIntent.setType("vnd.android-dir/mms-sms"); 
startActivity(smsIntent);

It used to work before on all previous versions on my phone. Now they don't.

Jayizzle
  • 532
  • 1
  • 6
  • 24
  • Would you post logcat from the device? – Dan S Jun 11 '14 at 00:54
  • 1
    Relates to http://stackoverflow.com/questions/19853220/android4-4-can-not-handle-sms-intent-with-vnd-android-dir-mms-sms ? – harism Jun 11 '14 at 00:58
  • From the AVD or the real phone? I downloaded aLogcat for my device, and it doesnt show anything new in logcat for my real phone when I run the application. – Jayizzle Jun 11 '14 at 01:00

0 Answers0