Add one contact with multiple numbers Android programmatically
问题 How to add one contact with multiple numbers on android phone programmatically? 回答1: This is how we can do this pass Name and Array of numbers to this method. public static void addToContactList(Context context, String strDisplayName, String[] strNumber) throws Exception { ArrayList<ContentProviderOperation> cntProOper = new ArrayList<>(); int contactIndex = cntProOper.size();//ContactSize ContentResolver contactHelper = context.getContentResolver(); cntProOper.add(ContentProviderOperation