电子名片的QR code导入不分离领域。它是格式? [英] QR Code import of vCard does not separate fields. Is it the format?

查看:195
本文介绍了电子名片的QR code导入不分离领域。它是格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这文字

BEGIN:VCARD
N:Haven;Richard;;;
ADR;DOM;PARCEL;HOME:;;9999 Mission Street ;Daly City;California;94014;U.S.A.
EMAIL;INTERNET:richard@domain.com
EMAIL;INTERNET:richard@domain.org
TEL;CELL:831-555-9315
TEL;CELL:831-555-0740
END:VCARD

转换成<一href=\"http://chart.apis.google.com/chart?cht=qr&chs=350x350&chl=BEGIN%3AVCARD%0AN%3AHaven%3BRichard%3B%3B%3B%0AADR%3BDOM%3BPARCEL%3BHOME%3A%3B%3B9999+Mission+Street+%3BDaly+City%3BCalifornia%3B94014%3BU.S.A.%0AEMAIL%3BINTERNET%3Arichard%40domain.com%0AEMAIL%3BINTERNET%3Arichard%40domain.org%0ATEL%3BCELL%3A831-555-9315%0ATEL%3BCELL%3A831-555-0740%0AEND%3AVCARD\"相对=nofollow>这个QR code ,然后导入到我的摩托罗拉Droid不分离的姓氏和名字,而且它不会在地址分开。

converted into this QR Code and imported into my Motorola Droid does not separate the first and last name, and it does not separate the address.

此外,电话和电子邮件被分配家庭和工作以及家庭和移动;我预计至少在手机中去,因为这两种手机。

Also, the phone and emails are assigned Home and Work and Home and Mobile; I expected at least the phones to go in as both Mobile.

难道就是这个样子的Andr​​oid解析电子名片或者我可以更改编码,允许分离和正确地指定类型的电子邮件和电话的?

Is it just the way Android parses vCards or can I change the encoding to allow separation and correctly specify the types of emails and phones?

感谢

推荐答案

我觉得这里的问题涉及律师code扫描仪,而不是Android系统。酒吧code扫描仪(我是一个开发者)分析所有这些领域。问题是,在Android 1.x的API没有让你指定所有你想在这里作为单独的字段的信息。机器人2.x的那样,以更大的程度。因为它的用户的一小部分仍然在1.5巴code扫描仪必须使用1.5兼容保留的时刻 - 小部分,但10万人,因此,我们不能仅仅把它们扔掉。

I think the question here concerns Barcode Scanner, rather than Android. Barcode Scanner (I'm a developer) parses all these fields. The issue is that the Android 1.x APIs do not let you specify all of the information you want to here as separate fields. Android 2.x does, to a much greater degree. Barcode Scanner must remain compatible with 1.5 for the moment since a small fraction of its users are still on 1.5 -- small fraction, but of 10 million people, so we can't just dump them.

这是可以想象的,虽然是很痛苦的,编写使用的一个或另一个的API,同时仍然1.5友好的一个版本。

It's conceivable, though quite painful, to write a version that uses one or the other API while still being 1.5-friendly.

相反已经有需要的Andr​​oid 2.2,并使用新的API的版本。它不会被释放一段时间(见上文),但你可以给它一个在这里拍摄:的 HTTP://$c$c.google.com/p/zxing/downloads/detail名=酒吧codeScanner-debug.apk

Instead there is already a version that requires Android 2.2 and uses newer APIs. It's not going to be released for some time (see above) but you can give it a shot here: http://code.google.com/p/zxing/downloads/detail?name=BarcodeScanner-debug.apk

这篇关于电子名片的QR code导入不分离领域。它是格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆