I want to use the contacts API but for my specific application my users will most likely not want these contacts polluting their contact list. The application is targeted for delivery drivers and I want to use Contacts to keep track of past deliveries. I don't really care if the user can edit or change the contacts, but I don't want to confuse the user by having these contacts start populating in their address book.
Any ideas? Otherwise I will use a SQLite Database but I hate re-inventing functionality.
Why don't you just store your own contact to another database...? Ideally in your application.
ReplyDeleteThe contact list allows you to set the "is visible group" setting.
ReplyDeletehttp://developer.android.com/reference/android/provider/ContactsContract.ContactsColumns.html#IN_VISIBLE_GROUP
While you shouln't use this just because you are too lazy to write your own content provider, it is useful for some apps that you can save contacts in and don't want to annoy users with... (I think a number of apps do this, possibly Facebook at times?)
You can simply set that flag when you insert the contact in the contacts content provider by setting the appropriate flags.