Skip to content Skip to sidebar Skip to footer

SmsManager, Send Attachment In Sms

How do I add an 'attachment' into my SmsManager object when I'm trying tro send an sms? My current function for sending a normal sms is: public void send() { SmsManager sms = S

Solution 1:

follow the code

     Intent sendIntent = new Intent(Intent.ACTION_VIEW);
     sendIntent.putExtra("sms_body", "default content");
     sendIntent.setType("vnd.android-dir/mms-sms");
     startActivity(sendIntent);

and add permission

      <uses-permission android:name="android.permission.SEND_SMS" />

Post a Comment for "SmsManager, Send Attachment In Sms"