tags:

views:

186

answers:

1

Found this question while trying to do the same: http://stackoverflow.com/questions/642076/how-to-save-sms-to-inbox-in-android-programmatically.

But this part:

getContentResolver().insert(Uri.parse("content://sms/sent"), values);

throws an SecurityException.

I requestet SMS_WRITE permission in the manifest file.

Thanks in advance!

A: 

The permission name is WRITE_SMS... maybe that is the problem.

Deepank Gupta
sorry, this was just a typo. The part of the manifest file is:<uses-permission android:name="android.permission.WRITE_SMS"></uses-permission>
Verena