开发者

android video calling

in android for voice call we use belo开发者_JAVA百科w code

                        Intent intent = new Intent(Intent.ACTION_CALL);
                intent.setData(Uri.parse("tel:+436641234567"));
                startActivityForResult(intent,0);

then what is the intent or code for Video call


Video calling is easily possible if both the users have a 3G connection. I did a sample code where on a button click the call is initiated to a number. I wrote the following code inside the onclick listener:

   Intent callIntent = new Intent("com.android.phone.videocall");
        callIntent.putExtra("videocall", true);
        callIntent.setData(Uri.parse("tel:" + phonenumber));
        startActivity(callIntent);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜