user3253955
user3253955

Reputation: 443

SMS Inbox Android 4.4

I would create an sms and save it into sms inbox.

I've tried using this:

ContentValues values = new ContentValues();
values.put("address", phoneNumber);
values.put("date", time);
values.put("body", message);
values.put("type", 1);
values.put("read", 1);
context.getContentResolver().insert(Uri.parse("content://sms"), values);

This work on android 4.0.x, 4.1.x and 4.2.x, but don't work on android 4.4.

How can i set my message into the default message application?

Thank you to all.

Upvotes: 2

Views: 1051

Answers (1)

CommonsWare
CommonsWare

Reputation: 1007584

How can i set my message into the default message application?

You cannot modify the SMS inbox unless your app is the user's chosen SMS client on Android 4.4+.

Upvotes: 4

Related Questions