Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Adding a new SMS programmatically

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.011 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: Exabot [Bot] and 10 guests