简体   繁体   中英

android video calling

in android for voice call we use below 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);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM