如何使视频通话编程方式在Android 2.2或更高版本? [英] How to make video call programmatically on Android 2.2 or higher?

查看:133
本文介绍了如何使视频通话编程方式在Android 2.2或更高版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的工作,我想进行视频通话编程的应用程序。我使用的API级别8我的应用程序。

I am working on an application where I want to make a video call programmatically. I am using API level 8 for my application.

我有三星Galaxy S,在那里我可以使用视频通话功能。使用意图的行动 ACTION_CALL ,我就可以开始语音呼叫。

I have Samsung Galaxy S, where I can use video calling functionality. Using intent action ACTION_CALL, I can start voice call.

任何人都可以请帮我以编程方式启动视频通话?这额外的意图我需要提供?有没有什么特别的字段,它表明目前的去向呼叫的视频通话?如果是的话,我怎么能设置该字段,表示我想调用视频通话?

Can anyone please help me out to start video call programmatically? Which intent extra I have to provide? Is there any particular field which indicates that current outgoing call is video call? If yes, how can I set that field to indicate that I want to invoke a video call?

感谢很多提前。

推荐答案

下面是code在我的三星Galaxy Tab(安卓2.2)

Here is the code for creating video call on my Samsung Galaxy Tab (Android 2.2)

Intent callIntent = new Intent("com.android.phone.videocall");
callIntent.putExtra("videocall", true);
callIntent.setData(Uri.parse("tel:" + [your number goes here]));
activity.startActivity(callIntent);

这篇关于如何使视频通话编程方式在Android 2.2或更高版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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