I implement a custom adapter that iterates over some database items, which in turn access the Android contacts database. The adapter will query the content converter and bind the data from the returned cursor to the view. However, suppose I add a contact to my personal database and then delete it from the Android contact list. The request will fail, and ideally in this case I want to delete this record from the database and try the next one and invalidate the view that I have to bind so that it does not appear on the screen.
I don't see the obvious way to do this from the SDK docs, so I thought I would ask lazyweb!
Another solution is to iterate through the entire private contacts database to instantiate and reduce all bad records, but I find it very expensive.
source
share