在Chrome浏览器中使用Android共享意图? [英] Use Android share intent in Javascript in Chrome?

查看:164
本文介绍了在Chrome浏览器中使用Android共享意图?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Android版Chrome中使用Javascript中的Android共享菜单。
我知道您可以从Chrome启动特定应用:
https ://developers.google.com/chrome/mobile/docs/intents



有没有办法使用href =intent:// .. 。打开共享菜单?
这是如何在应用程序中完成的: http://developer.android .com / training / sharing / shareaction.html

解决方案

快速回答是你不能。 p>

我做了这个示例: http://jsbin.com/AdAPEmu / 2 ,它构成了意图,因为它会出现在Android和Chrome上并不能识别它,它需要一个包来支持它。


I would like to bring up the Android Share menu from Javascript in Chrome for Android. I know that you can launch a specific app from Chrome: https://developers.google.com/chrome/mobile/docs/intents

Is there a way to use href="intent://..." to open the Share menu? This is how it is done in an app: http://developer.android.com/training/sharing/shareaction.html

解决方案

The quick answer is you can't.

I made this sample: http://jsbin.com/AdAPEmu/2 which constructs the Intent as it would appear for Android and Chrome doesn't recognise it, it needs a package to go with it.

这篇关于在Chrome浏览器中使用Android共享意图?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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