When I add contacts with ACCOUNT_NAME, ACCOUNT_TYPE set to my custom values, the contacts are not saved after the Samsunc Epic (Android 2.1) is powered off. Before I power off, everything behaves as expected. I add contacts using the ArrayList ops and applyBatch(ContactsContract.AUTHORITY, ops) technique.
The same code works fine on the emulator and HTC EVO phones running 2.1 or 2.2. I am not currently using any sync provider logic. Do I need to be a sync provider to use custom account fields?
If I use null values for ACCOUNT_NAME and ACCOUNT_TYPE the contacts are saved fine on both the Epic and HTC EVO, but I want an option to hide the contacts from typical "My Contacts" views.
Given that I'd like to be able to hide/unhide contacts dynamically, is using a custom account/type the best way to hide contacts or is there a better way?