Can't able to Retrieve Phone Type And Email Type?
<p>I am using 2.1 platform. when I try to use the below code in my app to include phone and email type it is not working. Also <strong>The Application is stopped unexpectedly</strong> Where is the actual error. </p>

<pre><code>int contactPhoneType =   pCur.getInt(pCur.getColumnIndex(ContactsContract.CommonDataKinds.Phone.TYPE));
       if( contactPhoneType == ContactsContract.CommonDataKinds.Phone.TYPE_HOME){

           switch(contactPhoneType){
           case ContactsContract.CommonDataKinds.Phone.TYPE_HOME: 
           Phonetype = "Home";
           break;

           }
       }
</code></pre>
