You can call activity's getContentResolver().query(uri,...) ,then get one cursor
在 2010 年 5 29 日,5:56 上午,"abhi" <rkabhi1...@gmail.com>编写: Look into ContentProviderOperation On May 26, 10:04 am, Vikram <vikram.bodiche...@gmail.com> wrote: > I have written a content provider over a database table which > essentially captures phone contacts information. > > So at a point of time, in my application code, I want to query the > android contacts content provider, and insert that information into my > Database table through the content provider. > > For this I have to query the content provider from android, get the > cursor, loop over the android contacts, for each contact, insert using > my URI, this becomes very bulky. Is there any work around? A bulk > insert mechanism of some sort? Or at least pass an object to a URI, > which can be the android cursor. -- 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