what intents or apis does Google's Duo app for

2020-03-15 01:42发布

Can we start a new video call via Google Duo via intent? Can we launch into any specific screen within the app?

We currently have support for launching Hangouts from our app, and we would like to add Duo support as well.

2条回答
Animai°情兽
2楼-- · 2020-03-15 01:53

Use this :-

Intent intent = getPackageManager().getLaunchIntentForPackage("com.google.android.apps.tachyon");
startActivity(intent);
查看更多
Summer. ? 凉城
3楼-- · 2020-03-15 01:54

Found this in the truecaller source code. Can't get to work, but hope it helps. I'm using Kotlin.

val I = Intent("com.google.android.apps.tachyon.action.CALL")
i.'package' = "com.google.android.apps.tachyon"
i.data = Uri.parse("tel: $phone") // phone is the phone number your to a function
i.putExtra(com.google.android.apps.tachyon.extra.IS_AUDIO_ONLY, false)
startActivity(i)
查看更多
登录 后发表回答