Hi Manoj

Try this

Uri uri = ContentUris.withAppendedId(Sms.Inbox.CONTENT_URI, 2);
getContentResolver().delete(uri,null);


Regards
Manikandan.D

On Mon, Apr 26, 2010 at 3:45 PM, Manoj <[email protected]> wrote:

> Hi folk,
> I am trying to delete sms from the inbox,
> I am using the following statement
>
> getContentResolver().delete(Uri.parse("content://sms/inbox"), "_id=2",
> null));
>
>
> but its not working.
>
> Does anybody has any suggestion for doing this.
>
> Manoj
>
> --
> 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]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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