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
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
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 - (
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
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
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.
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
7 matches
Mail list logo