移动Web应用程序的“共享功能" [英] 'Share Functionality' for Mobile Web Apps
问题描述
如果我在移动Web应用程序中添加"mailto:"链接,智能手机就会知道要打开本机邮件应用程序,是否有类似共享"的内容?
If I add a 'mailto:' link to my Mobile web app, smartphones know to open up the native mail app, is there something similar for 'sharing'?
我问,因为在我的Android 2.2上,如果我使用浏览器的菜单选项选择文本",然后选择一些文本,则会看到共享方式"选项,该选项会打开一个本机对话框,其中包含通过共享"的选项gmail,facebook等...我想从我的Mobile Web App触发此对话框.这可能吗?
I ask because on my Android 2.2, if I 'select text' using the browser's menu option, and then I select some text, I get presented with a 'share via' option that opens a native dialog with options to share via gmail, facebook, etc... I'd like to trigger this dialog from my Mobile Web App. Is this possible?
预先感谢您的帮助,非常感谢,因为我无法自行解决. :)
Thanks in advance for any help, much appreciated as I couldn't figure it out on my own. :)
推荐答案
这里有一个教程,但我不知道它是否适用于移动Web应用程序.
Here a tutorial but I don't know if it works for mobile web apps.
http://mobile.tutsplus.com /tutorials/android/android-sdk-implement-a-share-intent/
这篇关于移动Web应用程序的“共享功能"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!