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

Hi,

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.029 seconds, using GeSHi 1.0.8.4

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!
simirimia
Once Poster
Once Poster
 
Posts: 1
Joined: Sat May 29, 2010 4:48 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: Google [Bot] and 18 guests