contacts in account not saved on Epic on power off

Put your problem here if it does not fit any of the other categories.

contacts in account not saved on Epic on power off

Postby MarkF » Wed Feb 09, 2011 6:41 pm

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?
MarkF
Freshman
Freshman
 
Posts: 2
Joined: Wed Feb 09, 2011 6:01 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 21 guests