2
我創建一個應用程序使用意圖進行視頻通話要在運行Android Lollipop 5.0視頻通話,這是我試過的代碼是下面,無法使用意圖
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);
但與上面的代碼問題對於所有較低版本(upto kitkat 4.4)都適用,但它不適用於5.0(棒棒糖)版本。請建議我以某種方式使用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) }
做你有我也試過,也爲視頻通話意圖 – rajahsekar