what intents or apis does Google's Duo app for

2020-03-15 01:51发布

问题:

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.

回答1:

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)


回答2:

Use this :-

Intent intent = getPackageManager().getLaunchIntentForPackage("com.google.android.apps.tachyon");
startActivity(intent);