如何添加自定义架构网址" SMS_BODY" [英] how to add custom schema URL to "sms_body"

查看:144
本文介绍了如何添加自定义架构网址" SMS_BODY"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要发送包含自定义架构URL的短信:

I want to send a sms message that contain custom schema URL :

例如:
               塞缪尔://王牌ID = dddfsdfsdfsdfs

For example: samuel://ace?id=dddfsdfsdfsdfs

在收件人clikc这个URL,它会启动我的申请。

When the addressee clikc this URL, it will launch my application.

我的问题是,我怎么能超链接添加到SMS_BODY?

My question is that how can I add the hyperlink to "sms_body" ?

任何人有相对的经验吗?换句话说,你能给我一些建议吗?

Any people have the relative experience ? In other words, Can you give me some suggestions?

推荐答案

不要使用塞缪尔://王牌ID = dddfsdfsdfsdfs 。使用 http://samuel.org/ace?id=dddfsdfsdfsdfs 。在你的Andr​​oid应用程序,具有响应 ACTION_VIEW 活动,与 BROWSEABLE 类,用适当的<数据> 元素相匹配的方案,主机和路径。还可以创建说明你的应用程序的价值您的Web服务器上的Web页面,他们为什么要安装它。

Don't use samuel://ace?id=dddfsdfsdfsdfs. Use http://samuel.org/ace?id=dddfsdfsdfsdfs. In your Android application, have an activity that responds to ACTION_VIEW, with the BROWSEABLE category, with an appropriate <data> element to match on the scheme, host, and path. Also create a Web page on your Web server that explains the value of your application and why they should install it.

这方式:


  • 您的链接会自动可点击

  • 您的链接将工作在所有设备上,包括非Android设备

  • 用户安装应用程序时,
  • 您的链接将仍然打开您所需的活动

这里是显示一些这方面的一个示例应用程序。

Here is a sample application showing some of this.

这篇关于如何添加自定义架构网址&QUOT; SMS_BODY&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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