title: android add multiple phone numbers for a contact
body: <p>using Android SDK > 5, I m creating a contact by starting the ACTION_INSERT activity.
  I want to add several phone numbers (work, home, etc...) for the contact using the following code:</p>
  
  <pre><code>Intent newIntent = new Intent(Intent.ACTION_INSERT, 
            ContactsContract.Contacts.CONTENT_URI); 
  
  for(ContactInfo.Phone p : phones)
        {
  
         newIntent.putExtra(ContactsContract.Intents.Insert.PHONE, p.number);
         newIntent.putExtra(ContactsContract.Intents.Insert.PHONE_ISPRIMARY, p.isPrimary ? new Integer(1) : null);
         newIntent.putExtra(ContactsContract.Intents.Insert.PHONE_TYPE, unconvertPhoneType(p.type));
  
        }
  </code></pre>
  
  <p>(unconvertPhoneType() is a function to get the type as CommonDataKinds.Phone.TYPE_XXX)</p>
  
  <p>I have just one example being inserted in the contact.
  What is wrong with the above?</p>
  
  <p>Additionally, in LogCat logs, I have also the following error:</p>
  
  <blockquote>
    <p>12-14 11:09:03.015: WARN/Bundle(1724): Key phone_type expected String but value was a java.lang.Integer.  The default value  was returned.</p>
  </blockquote>
  
  <p>looks like it comes from PHONE_TYPE, however CommonDataKinds.Phone.TYPE_XXX is of type integer, so i am not sure...
  What is the cause of that?</p>
  
  <p>Thanks!</p>