I have to write an application (>= SDK 4) which is able to create Contacts. So I started to read about that and there is something I don't understand:
I found that one on android.com:
- Code: Select all
ContentValues values = new ContentValues();
Uri rawContactUri = getContentResolver().insert(RawContacts.CONTENT_URI, values);
sounds good so far, then I was wondering what the account type itself is. I figured out that the
AccountTypes can be accessed with the AccountManager. No big deal till here.
But if I ask the AccountManager on the emulator, it does not return me anything. I created some contacts on the emulator already. What AccountType do I have to access to create a contact on the device/emulator?
Thank you in advance