Bear in mind that your technique will break on devices where they do not have the Messaging application and may break on future versions of Android.
http://android-developers.blogspot.com/2010/05/be-careful-with-content-providers.html On Tue, Aug 10, 2010 at 10:05 PM, Suzann <[email protected]> wrote: > Hi, > > Sorry for late reply I was on vacation. > I did manage to save it to default database - (on my Android 2.1) > > In order to do so I used the function below: > private void storeMessage(String mobNo, String msg) { > ContentValues values = new ContentValues(); > values.put("address", mobNo); > values.put("body", msg); > getContentResolver().insert(Uri.parse("content://sms/sent"), values); > } > > I had to add READ_SMS and WRITE_SMS permission to my manifest. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Warescription: Three Android Books, Plus Updates, One Low Price! -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

