You don't have to use a batch. Whatever arguments you specify as batch
parameters should also work directly.
Traditionally, we use contacts._ID for deletion, not the name - you can have
multiple contacts with the same name.
Also, sql parameters should always be passed using placeholders
I was trying to delete a contact using the code in the docs:
ArrayListContentProviderOperation ops = Lists.newArrayList();
ops.add(ContentProviderOperation.newDelete(Data.CONTENT_URI)
.withSelection(Data._ID + =?, new String[]
{String.valueOf(dataId)})
.build());
This method is a shorthand for creating an array list. You can use this
instead:
.. ops = new ArrayListContentProviderOperation();
On Fri, May 28, 2010 at 10:19 AM, Pinheiro rui.c.pinhe...@gmail.com wrote:
I was trying to delete a contact using the code in the docs:
*Any one want a FREE website or word press blog set up?
if you join my hosting!*
Email me at *abira...@gmail.com*
On Fri, May 28, 2010 at 10:19 AM, Pinheiro rui.c.pinhe...@gmail.com wrote:
I was trying to delete a contact using the code in the docs:
ArrayListContentProviderOperation ops =
4 matches
Mail list logo