What I need:
- Send SMS with no GUI interaction (choosing a client to send SMS is out)
- SMS has to be visible in a thread queried from \"content://mms-sms/conversat
Just figured it out, you can use ContentResolver to insert the SMS and remember to add permissions: "uses-permission android:name="android.permission.WRITE_SMS"
ContentValues values = new ContentValues();
values.put("address", phone);
values.put("body", message);
getContentResolver().insert(Uri.parse("content://sms/sent"), values);
You need to use the following value:
values.put("thread_id", threadId);
And it will be associated with the thread.