Hello,

 I am very new to the android development.

I have developed an app to send sms and it is working. 

But now I want, after each and every sms sent, the sent sms will be saved 
to the sender's android phone's sms folder. I tried it a lot but somehow it 
is Not working.


While I am trying to save the sms to the Inbox, it is being saved. But when 
I am wanting to save the sms to the Sent folder, it is Not working.

My code is to save sms to the Inbox folder, as follows:-
------------------------------------------------------------------

ContentValues my_values = new ContentValues();
my_values.put("address", "+00000000xx");
my_values.put("body", "testing");
getContentResolver().insert(Uri.parse("content://sms/inbox"), my_values);


------------------------------------------------------------------



My code is to save sms to the Sent folder , as follows:-
------------------------------------------------------------------

ContentValues my_values = new ContentValues();
my_values.put("address", "+00000000xx");
my_values.put("body", "testing");
getContentResolver().insert(Uri.parse("content://sms/sent"), my_values);


------------------------------------------------------------------


My app is being crashed while the above mentioned is being used to save the 
sms to the Sent folder.




Please help me in this regard and oblige me thereby.





Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to android-developers+unsubscr...@googlegroups.com.
To post to this group, send email to android-developers@googlegroups.com.
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/android-developers/72b3da0f-f7d0-4126-b09f-9dd091f9d06a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to