I am creating an application to make a video call using Intents, the code which I have tried are below,
Intent callIntent = new Intent(
"com.android.phone.videocall");
callIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
callIntent.putExtra("videocall", true);
callIntent.setData(Uri.parse("tel:" + phoneNo));
startActivity(callIntent);
delayWait(duration);
But the Problem with the above code is that, working fine for all the lower versions(upto kitkat 4.4) , but it is not working in 5.0 (lollipop) version. Please suggest me some way to achieve this using Intents.
Error: E/com.example.menewintel.service.VideoCallService(5801): No Activity found to handle Intent { act=com.android.phone.videocall dat=tel:xxxxxxxxx flg=0x10000000 (has extras) }
Aucun commentaire:
Enregistrer un commentaire