I have a string representation of a ContactsContract.CommonDataKinds.Phone.TYPE in android.
I want the integer value of this type.
e.g: lets say "Home" == 1
I had the "1" and then i used:
ContactsContract.CommonDataKinds.Phone.getTypeLabel(...)
to get the String value of it (meaning now i got "Home").
Now in another place of my code I need the integer value again because I want to query the Phone.NUMBER where Phone.TYPE=1
Hope someone understood my question.