down vote favorite

How do I clear the whole table using content provider properly? Now I
use this:

private void clearDB(){
    ContentResolver cr=getContentResolver();
    String where=FeedProvider.KEY_ID+" > '0'";
    cr.delete(FeedProvider.ITEMS_URI, where, null);
}

But it seems to me that is not the best way to do it.

The exact problem is that primary key field does not reset.

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