How to make video call programmatically on Android 2.2 or higher?

☆樱花仙子☆ 提交于 2020-01-09 19:32:07

问题


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

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

How to start video call? 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?


回答1:


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);


来源:https://stackoverflow.com/questions/7121623/how-to-make-video-call-programmatically-on-android-2-2-or-higher

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!