Android add custom phonenumber
<p>i want to add a custom phonenumber to a given contact.</p>

<p>My Code is:</p>

<pre><code> @Override
protected Void doInBackground(Void... params) {
    for (PhoneContact phoneContact : this.phoneContactList) {
        progressDialog.incrementProgressBy(1);
        try {
            ContentResolver contentResolver = ctx.getContentResolver();
            ArrayList&lt;ContentProviderOperation&gt; operations = new ArrayList&lt;ContentProviderOperation&gt;();
            operations.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI)
                    .withValueBackReference(ContactsContract.Data.RAW_CONTACT_ID, Integer.parseInt(phoneContact.getId()))
                    .withValue(ContactsContract.CommonDataKinds.Phone.TYPE, ContactsContract.CommonDataKinds.Phone.TYPE_CUSTOM)
                    .withValue(ContactsContract.CommonDataKinds.Phone.LABEL, "ABCDE")
                    .withValue(ContactsContract.Data.MIMETYPE, ContactsContract.CommonDataKinds.Phone.CONTENT_ITEM_TYPE)
                    .withValue(ContactsContract.CommonDataKinds.Phone.NUMBER, PhoneNumberFormatter.formatNumber(ctx, "1232444444"))
                    .build());
            contentResolver.applyBatch(ContactsContract.AUTHORITY, operations);
        } catch (RemoteException e) {
            e.printStackTrace();
        } catch (OperationApplicationException e) {
            e.printStackTrace();
        }
    }
    progressDialog.dismiss();
    return null;
}
</code></pre>

<p>But when i run this code, nothing will hapend.
Can everyone help me?</p>