Are you facing this problem always? Or is this happening only when you
try to delete
a message as soon as you receive it.


On Aug 31, 3:33 am, Pobudzio <[email protected]> wrote:
> Hi,
>
> I have problem with deletion sms with messageId=0. I can't delete such
> a message. There is no problem with deletion other messages but first
> message taken from inbox has always message Id=0 and I can't delete
> it.
> I use code below for deletion.
>
> Uri SMS_CONTENT_URI = Uri.parse("content://sms");
> Uri deleteUri = Uri.withAppendedPath(SMS_CONTENT_URI,
> String.valueOf(smsList.get(currentSmsIndex).getId()));
> int count = context.getContentResolver().delete(deleteUri, null,
> null);
>
> Do you have any idea?
>
> Regards,
> Pobudzio

-- 
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

Reply via email to