To add this in vcard I have to know the protocol name. For example...
Impp impp = new Impp("aim:joh...@aol.com");
vcard.addImpp(impp);
But I cannot get the names of the protocol.
String imName = imCur.getString(imCur .getColumnIndex(ContactsContract.CommonDataKinds.Im.DATA));
String imType = imCur.getString(imCur .getColumnIndex(ContactsContract.CommonDataKinds.Im.PROTOCOL));
Here Im.PROTOCOL gives me some integer value for IMs... like 0, 1, 2
so i am trying to do it like this..
int imtypeInt = Integer.parseInt(imType);
String typeStr = "";
switch (imtypeInt) {
case Im.PROTOCOL_AIM:
typeStr = "aim";
break;
case Im.PROTOCOL_MSN:
typeStr = "msn";
break;
case Im.PROTOCOL_YAHOO:
typeStr = "";
break;
case Im.PROTOCOL_SKYPE:
break;
etc......
But I dont know all the protocol names of the IMs. How can I get them.
And is my approach is right?
please help...
--
You received this message because you are subscribed to the Google Groups "ez-vcard-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ez-vcard-discu...@googlegroups.com.
To post to this group, send email to ez-vcard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ez-vcard-discuss/03d6c825-656c-4c54-aa95-2a4a952eebb1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.