Re: [android-developers] missing Lists.newArrayList()

2010-05-29 Thread Dmitri Plotnikov
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

[android-developers] missing Lists.newArrayList()

2010-05-28 Thread Pinheiro
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());

Re: [android-developers] missing Lists.newArrayList()

2010-05-28 Thread Dmitri Plotnikov
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:

Re: [android-developers] missing Lists.newArrayList()

2010-05-28 Thread abisai rangel
*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 =