Android:如何从 WebView 调用 Skype?
当从网络视图中单击“skype me”链接(例如:skype://1866012345)时,我需要调用 Skype 应用程序并从 Skype 进行呼叫。有人可以帮助如何做到这一点吗?
我尝试了以下操作:
从市场下载Skype应用程序(在我的driod 2.2中)。 启动 Skype 时,调用的包是“skype.android.raider” - 根据 ADB 日志。 所以我尝试使用 cmp=com.skype.raider/.ui.call.SplashScreenActivity 或 cmp=com.skype.raider/.ui.call.SkypeOutCallActivity 调用 ACTION_VIEW 意图 和 data=Uri.parse(“skype://1866012345”)。这些都不起作用。
(我也确实找到了一些建议使用 skypelite 组件的帖子,但我想我应该为此安装 skype lite,但在市场上找不到。我认为 skype lite 不再在市场上了。)
(另外,我有从 WebView 单击相应的链接时能够拨打电话或发送电子邮件 截至目前,我已经为其中的每一个添加了自定义处理,但想知道默认情况下 webview 是否不支持它。启用t 这样做吗??)
谢谢!
I need to invoke skype application and make a call from skype when a 'skype me' link (eg: skype://1866012345) is clicked from a webview. Can someone help how to do this?
I tried the following:
Downloaded skype application from market (in my driod 2.2).
When launching skype, the package invoked is 'skype.android.raider' - as per ADB logs.
So I tried invoking a ACTION_VIEW intent with cmp=com.skype.raider/.ui.call.SplashScreenActivity or cmp=com.skype.raider/.ui.call.SkypeOutCallActivity
and data=Uri.parse("skype://1866012345"). These did not work.
(I also did find a few posts suggesting to use skypelite component, but I guess I should ve skype lite installed for that, which could not find in the market. I assume skype lite is not in market anymore.)
(Also, i have to be able to make a phone call or email when corresponding links are clicked from WebView. As of now, I have added custom handling for each of these, but wondering if webview by default would not support it. Is there any webview setting to be enabled t do this? Any idea??)
thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
除非他们正在进行意图过滤或使用自定义权限来禁止您启动他们的一项活动,否则这仍然是可能的。您必须明确地启动他们的活动,因为他们开始执行完全相同的操作。
我已经使用官方 Facebook 应用程序完成了此操作,以直接启动查看个人资料。
Unless they're doing intent filtering or using custom permissions to disallow you from starting one of their activities then it is still possible. You have to start their activity explicitly as they start it doing the exact same action.
I've done it with the official Facebook app to launch viewing a profile directly.