title: get email type and phone number type 's label used android
body: <p>I want to fetch the type of <code>email type</code> and <code>phone number type's</code> label used but when im fetching the data using these code its giving position of label use means return <code>integer</code> value but i want the label used.</p>
  
  <p>Where i am wrong in my code?</p>
  
  <p>Success full getting email id but for type giving <code>int</code>. value as 1,2. </p>
  
  <p>So how to get label for type?</p>
  
  <pre><code>public String [] getEmailid(long _id) {
      String emailid = null ;
      String emailType = null ;
      try {
          Cursor cursor = getContentResolver().query(  
              ContactsContract.CommonDataKinds.Email.CONTENT_URI,  
              new String[]{Email.DATA,Email.TYPE},
              ContactsContract.CommonDataKinds.Email.CONTACT_ID +" = "+ _id, 
              // We need to add more selection for phone type
              null,
              null);
  
          if(cursor != null) {
              while (cursor.moveToNext()) {  
                  // This would allow you get several email addresses  
                  // if the email addresses were stored in an array  
                  // Log.i("RETURN EMAIL TYPA",emailid);
                  emailid = cursor.getString(cursor.getColumnIndex(Email.DATA)); 
                  emailType = cursor.getString(cursor.getColumnIndex(ContactsContract.CommonDataKinds.Email.TYPE));  
  
                  // TODO Auto-generated method stub
                  if(emailid != null)
                      break;
              }
          }
      }
  //.....
  </code></pre>