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.