views:

848

answers:

2

I created contacts with the emulator for v 2.0. However, my i am unable to see these contacts. One of the Errors i get even before my code that executes the read contacts is;

Cannot determine the default account for contacts compatibility

See below for full stack:

E/ContactsProvider( 109): Cannot determine the default account for contacts compatibility E/ContactsProvider( 109): android.accounts.AuthenticatorException: bind failure E/ContactsProvider( 109): at android.accounts.AccountManager.convertErrorToException(AccountManager.java:659) E/ContactsProvider( 109): at android.accounts.AccountManager.access$500(AccountManager.java:53) E/ContactsProvider( 109): at android.accounts.AccountManager$BaseFutureTask$Response.onError(AccountManager.java:566) E/ContactsProvider( 109): at android.accounts.IAccountManagerResponse$Stub.onTransact(IAccountManagerResponse.java:69) E/ContactsProvider( 109): at android.os.Binder.execTransact(Binder.java:287) E/ContactsProvider( 109): at dalvik.system.NativeStart.run(Native Method)

+2  A: 

You're getting this error because you don't have any accounts registered on your virtual device.

Unfortunately, solving this is a bit difficult, since the SDK doesn't come bundled with Google Accounts support. As a result, there's no account types available on your device that you could use to register a new account.

Unless you can find a third-party application that registers itself as an contact provider (I'm not aware of any yet), I can't think of a solution here other than to develop on an actual phone.

Trevor Johns
Figured it out. Thanks
qiktalk