*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: > > ArrayList<ContentProviderOperation> ops = Lists.newArrayList(); > ops.add(ContentProviderOperation.newDelete(Data.CONTENT_URI) > .withSelection(Data._ID + "=?", new String[] > {String.valueOf(dataId)}) > .build()); > getContentResolver().applyBatch(ContactsContract.AUTHORITY, ops); > > But Eclipse doesn't how to find "Lists". What import statement do I > need? > > Also, is there a more direct way to delete a contact? Thanks in > advance! > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com<android-developers%2bunsubscr...@googlegroups.com> > 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en