vcard

How do I parse a VCard to a Python dictionary?

ε祈祈猫儿з 提交于 2019-12-04 13:19:14
问题 I'm trying to figure out how to parse a VCard to a Python dictionary using VObject. vobj=vobject.readOne(string) print vobj.behavior.knownChildren This is all I get: {'CATEGORIES': (0, None, None), 'ADR': (0, None, None), 'UID': (0, None, None), 'PHOTO': (0, None, None), 'LABEL': (0, None, None), 'VERSION': (1, 1, None), 'FN': (1, 1, None), 'ORG': (0, None, None), 'N': (1, 1, None), 'PRODID': (0, 1, None)} How can I populate the dictionary with my VCard data? 回答1: You don't want to look at

How can I send vcard/contacts/?vcf var SMS or MMS in Android?

女生的网名这么多〃 提交于 2019-12-04 12:50:00
I want to modify the Android source code that can send (contacts/vcard/.vcf file) by mms or SMS, the Android default way is through Bluetooth. I find a lot of ways, but it all doesn't work. I know the vcf format is like this: BEGIN:VCARD VERSION:2.1 N:;lybeen;;; FN:lybeen TEL;CELL; PREF:1-123-234-1234 TEL;CELL:000-111-1111 END:VCARD I send this string by SMS as plain message. Some Android phone can recoginse this as a contact, however most of the Android phone can not recoginse, but I don't know how to send the contacts by mms. Sahil Mahajan Mj though i think i am late in answering the

Seeking Schema for vCard Data Elements

房东的猫 提交于 2019-12-04 10:06:21
问题 I need a relational database schema to store vCard ver 3 data elements. Rather than reading the RFC and designing one from scratch, I'm looking to see if someone who has already done this is willing to share their database design. 回答1: (http://i.stack.imgur.com/61qGU.png) This is my DB schema for a VCard 3.0. This works quite well with CardMe library, each type is mapped to a database table and the many-to-many / one-to-many relationships are enforced through foreign keys. CREATE DATABASE ERP

Associate file types for vcard with an iPhone application

随声附和 提交于 2019-12-04 05:06:57
I have done following changes in my info.plist file <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>Visiting Card</string> <key>CFBundleTypeIconFiles</key> <array> <string>Icon.png</string> </array> <key>CFBundleTypeRole</key> <string>Editor</string> <key>LSHandlerRank</key> <string>Owner</string> <key>LSItemContentTypes</key> <array> <string>public.vcard</string> </array> </dict> </array> When I press and hold the vcard attachment, instead of giving me an option to open it in contacts app or with my application it simply opens it up with contacts app...How

Android: How to save contacts to sdcard as vCard. Without duplicates?

被刻印的时光 ゝ 提交于 2019-12-04 04:18:38
问题 I am trying to save all of the contacts on a phone to the sdcard as a .vcf file (vCard). It works, but I have a problem. Every contact that has more than one phone number (a mobile and work number) are saved twice. And both of the numbers are in each duplicate contact, so they are correct, just duplicated. Can someone please tell me how to fix this problem? My code is: File delete=new File(Environment.getExternalStorageDirectory()+"/Contacts.vcf"); if (delete.exists()) { delete.delete(); }

how to programmatically send business card messages to mobile phone via internet

霸气de小男生 提交于 2019-12-03 22:26:52
问题 Is it possible to send messages from internet in business card formats. ? I need to send a contact to a mobile phone so that the recipient can save the contact easily. using sms api s we can send sms but how to send business card files ? In my project scenario I have telephone numbers of 10 persons which I need to send the numbers to another mobile phone in business card format. Any ideas on how to implement ? 回答1: vCard is a file format standard for electronic business cards. vCards are

Creating a vCard in iPhone

僤鯓⒐⒋嵵緔 提交于 2019-12-03 22:15:32
I'm trying to create a vCard representation in the iPhone. I created a string representation for the vCard. I'm not sure how to convert it into the NSData form in order to mail it as an attachment. This is what I have so far: NSString *vCardString = [vCard getVCFString]; // returns string representation for vCard NSData *vCardData = [vCardString dataUsingEncoding:NSUTF8StringEncoding]; [mailController addAttachmentData:vCardData mimeType:@"text/x-vcard" fileName:@"LocationInfo"]; When I click on the attachment when I do a test email, it goes to the create new contact/add as existing contact.

Looking for a library for vCard generation and parsing in Objective-C, C, C++ (for iPhone) [closed]

醉酒当歌 提交于 2019-12-03 21:30:16
I would like to be able to parse a vCard from a string and produce a string representation for a vCard. Check out this library , I'm not the creator but i've used and it works just fine. Just take a look in the comments as there is a error that needs fixing in the library. 来源: https://stackoverflow.com/questions/5208581/looking-for-a-library-for-vcard-generation-and-parsing-in-objective-c-c-c-f

unable to create a person using VCard representation

不打扰是莪最后的温柔 提交于 2019-12-03 21:22:40
I am developing an app using XCode 4.2 and I am trying to create an ABPerson using initWithVCardRepresentation and/or ABPersonCreatePeopleInSourceWithVCardRepresentation , but I can t find a working example . can someone help? I get the VCard in an NSString format.... Thanks This is a full example and it works perfectly, it bases on the latest iOS 8. First of all you should check authorization status and request access right if not, then save the vcard, let just review the code below: if (ABAddressBookGetAuthorizationStatus() == kABAuthorizationStatusAuthorized){ NSLog(@"Authorized"); [self

Sending an MMS with a vCard attachment on Android devices

南楼画角 提交于 2019-12-03 16:17:04
I'm trying to find a way to send a MMS message containing a vCard attachment . I thought this would be a fairly easy task, but I still haven't managed to come up with something that just works over a wide variety of Android phones. The first thing I tried was this : Define an intent showing a list of apps capable of sending the vCard Intent i = new Intent(Intent.ACTION_SEND); i.setType("text/x-vcard"); i.putExtra(Intent.EXTRA_TEXT,"MMS with vCard"); i.putExtra(Intent.EXTRA_STREAM, Uri.parse (someFilereference); startActivity(Intent.createChooser(i, "Select MMS application.")); When using this,