[android-developers] Re: Saving SMS to SENT messages

2010-08-13 Thread Pent
Suzann, Assuming the name of the content provider is 'sms': if ( packageManager.resolveContentProvider ( "sms", 0 ) != null ) ) { //have provider } Pent -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send ema

[android-developers] Re: Saving SMS to SENT messages

2010-08-13 Thread Suzann
Is there a way to check if such content exists? If yes the message will get stored, else it will not. - This will at least prevent app from crashing once the sms content is not available anymore. Thx, Suzann On Aug 12, 10:31 pm, Mark Murphy wrote: > Bear in mind that your technique will break o

[android-developers] Re: Saving SMS to SENT messages

2010-08-12 Thread Anil
pardon my ignorance, but shouldn't the SmsManager class provide a deleteMessage(int i) method in its api? Then we wouldn't be scrambling to provide workarounds... On Aug 10, 10:05 pm, Suzann wrote: > Hi, > > Sorry for late reply I was on vacation. > I did manage to save it to default database - (

Re: [android-developers] Re: Saving SMS to SENT messages

2010-08-12 Thread Mark Murphy
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 wrote: > Hi, > > Sor

[android-developers] Re: Saving SMS to SENT messages

2010-08-12 Thread Suzann
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

[android-developers] Re: Saving SMS to SENT messages

2010-07-27 Thread Luca
I need the same thing... did you resolved that? I need to save a message on the outbox On Jul 14, 7:45 am, Suzann wrote: > Hello, > I have developed a simple application that on certain events sends anSMSto > ppl from my address book. > All works perfectly EXCEPT there is no trace of theSMSsent.

[android-developers] Re: Saving SMS to SENT messages

2010-07-14 Thread Mike dg
There is no public API for this. Not all SMS apps use the same datastore so even if you managed to save it for the default it might still not leave a trace. On Jul 14, 1:45 am, Suzann wrote: > Hello, > I have developed a simple application that on certain events sends an > SMS to ppl from my add