Get the two cursors(sorted by something) and then get the difference in n*logn time.
On Wed, Aug 25, 2010 at 8:10 AM, Vibhor Mahajan <[email protected]>wrote: > Hello All, > > My application maintains its own contact database(localcontacts.db). > This database is subset of Android phone contacts database (People or > ContactsContract). > > I want to display list of contact names from People database but not > in my application contact database (localcontacts.db). Getting cursor > from both databases and checking each element in my local database > will be an expensive operation. > > Kindly suggest the best way to do this task. > > Regards, > Vibhor > > -- > 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]<android-developers%[email protected]> > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- When I raise my flashing sword, and my hand takes hold on judgment, I will take vengeance upon mine enemies, and I will repay those who haze me. Oh, Lord, raise me to Thy right hand and count me among Thy saints. -- 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

