What is the default Account Type / Name for contacts on Android Contact Application?
I couldn’t find the way to get the SIM account yet. But I’m using the code below to get the default account name and type. public void getDefaultAccountNameAndType() { String accountType = “”; String accountName = “”; long rawContactId = 0; Uri rawContactUri = null; ContentProviderResult[] results = null; ArrayList<ContentProviderOperation> ops = new ArrayList<ContentProviderOperation>(); ops.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI).withValue(RawContacts.ACCOUNT_NAME, … Read more