Android-如何通过SMS/MMS发送/读取vCard? [英] Android - How to send/read vCard via SMS/MMS?

查看:96
本文介绍了Android-如何通过SMS/MMS发送/读取vCard?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找在我的应用中通过短信发送/读取vCard的任何方式.我已经阅读了很多文章,网页,论坛等.甚至还不知道如何做到这一点.

I'm looking for any way to send/read a vCard via SMS in my app. I've read a lot of articles, web-pages, forums etc. There is still not even a clue how to do that.

这是交易.

  1. 用户选择一些特定的联系人
  2. 应用程序为其生成电子名片
  3. 用户键入要发送电子名片的号码
  4. 应用程序通过该vCard发送短信(?)
  5. 收件人使用vCard接收SMS,并要求浏览联系人/添加到联系人(?)

以下是stackoverflow中的一些帖子,它们存在相同的问题:.还是没有帮助...

Here is some posts in stackoverflow with the same issue: this and this. Still nothing helpful...

我发现这个不错的库可以处理.vcf文件(两者写和读).但是,有什么方法可以将其发送到另一部手机(当然可以正确读取)吗?只是以字符串形式发送?

I've found this nice library to work .vcf files(both write and read). But is there any way to send it to another phone (and read properly of course)? Just send this as a string maybe?

HERE 是一篇不错的文章,内容涉及从已接收的SMS发送来的数据处理通过SMSManager.sendDataMessage()方法

HERE is a nice stack post about handling data from recieved SMS sent by SMSManager.sendDataMessage() method

请帮助!我很乐意获得任何线索,有用的库或证明在Android上是不可能的.如果没有通过SMS的方法,您可以给我建议如何通过MMS进行操作吗?

Please help! I'll be happy to get any clue, useful library or a proof that it's impossible on Android. If there is no way via SMS can you give me advice how to do that via MMS?

有趣的是,有很多具有该功能的应用程序,所以我想这是可能的.

What's interesting, that there is a lot of apps with that functionality, so I guess this is possible.

感谢任何回应.祝你有美好的一天.

Thanks anyone who responds. Have a good day.

推荐答案

当您拥有用于系统的MMS时,不必从代码中读取MMS.

You don't have to read MMS from code, when you have system for that.

要使用vCard发送MMS,您需要在其中附加.vcf文件.

To send MMS with vCard, you need to attach .vcf file to it.

此处是解决方法.

这篇关于Android-如何通过SMS/MMS发送/读取vCard?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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