Home > Software design >  How do I make a video call using Intent in android
How do I make a video call using Intent in android

Time:05-26

I want to make video call directly but this code is not working. please halp me.

 val intent = Intent(Intent.ACTION_CALL).apply {
      data = Uri.parse("tel:"   "PHONE_NUMBER")
      putExtra("videocall", true)
    }
 startActivity(intent)

CodePudding user response:

Change Intent object to this

Intent("com.android.phone.videocall")

instead of Intent(Intent.ACTION_CALL)

CodePudding user response:

Try this one

data = Uri.parse("tel:"   "PHONE_NUMBER")

val videoCall = Intent("com.android.phone.videocall")
videoCall.putExtra("videoCall", true)
videoCall.setData(data)
startActivity(videocall)

I hope it's working.

  • Related