点击按钮进行Google Duo音频/视频通话

时间:2018-06-17 07:48:54

标签: java android

我可以成功打开Goog​​le DUO,但我想在选择特定联系人时初始化音频/视频通话。

  Intent launchIntent = getPackageManager().getLaunchIntentForPackage("com.google.android.apps.tachyon");
    launchIntent.setAction("android.intent.action.VIEW");
    launchIntent.setData(Uri.parse("tel:1234567"));
    if (launchIntent != null) {
        startActivity(launchIntent);//null pointer check in case package name was not found
    }

我的日志文件显示了这一点。

06-17 12:43:37.813 28656-28656/com.example.waheed.duo V/BoostFramework: BoostFramework() : mPerf = com.qualcomm.qti.Performance@68d2df8

Timeline: Activity_launch_request time:53818311 intent:Intent { act=android.intent.action.VIEW cat=[android.intent.category.LAUNCHER] 
dat=tel:xxxxxxx flg=0x10000000 pkg=com.google.android.apps.tachyon 
cmp=com.google.android.apps.tachyon/.MainActivity }

0 个答案:

没有答案