我正在创建一个应用程序来使用意图进行视频呼叫,我尝试的代码如下所示,
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);但上述代码的问题是,在所有较低版本(直到kitkat 4.4)上都能正常工作,但在5.0 (棒棒糖)版本中就不能工作。请建议我一些使用意图来实现这一点的方法。
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) }发布于 2015-05-11 14:43:46
棒棒糖中的包名已更改
试着使用这个
"com.android.server.telecom"https://stackoverflow.com/questions/30161031
复制相似问题