Adding a new SMS programmatically

Put your problem here if it does not fit any of the other categories.

Adding a new SMS programmatically

Postby simirimia » Sat May 29, 2010 5:14 pm


I'm trying to add a new SMS programatically without using the internal SMS system. I used the following code:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. getContentResolver().insert(Uri.parse("content://sms/sent"), values);
Parsed in 0.014 seconds, using GeSHi

whereby values is an instance of ContentValues.
This results in a SecurityException. In the manifest, I requested the permission WRITE_SMS. I read something about special rights management for ContentProviders, but I could not find anything which helped me here, neither a general description what is possible with the SMS content provider and what not.
I found some info about deleting SMS, so the content provider seems not to be a read only ressource.

How do I request to correct rights to add an entry to content://sms/sent?

Thanks in advance!
Once Poster
Once Poster
Posts: 1
Joined: Sat May 29, 2010 4:48 pm


Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 4 guests