android,我可以转发phone个号码数据给google duo吗?
android, Can I forward phone number data to google duo?
Intent intent = getPackageManager().getLaunchIntentForPackage("com.google.android.apps.tachyon");
intent.setData(Uri.parse("tel:" + "phonenumber"));
startActivity(intent);
我无法以同样的方式将数据传递给 'Google duo' 应用程序
有办法吗?
试试这个
Intent duo = new Intent("com.google.android.apps.tachyon.action.CALL");
duo.setData(Uri.parse("tel: " + phoneNumber));
duo.setPackage("com.google.android.apps.tachyon");
startActivity(Intent.createChooser(duo, "Duo is not installed."));
Intent intent = getPackageManager().getLaunchIntentForPackage("com.google.android.apps.tachyon");
intent.setData(Uri.parse("tel:" + "phonenumber"));
startActivity(intent);
我无法以同样的方式将数据传递给 'Google duo' 应用程序
有办法吗?
试试这个
Intent duo = new Intent("com.google.android.apps.tachyon.action.CALL");
duo.setData(Uri.parse("tel: " + phoneNumber));
duo.setPackage("com.google.android.apps.tachyon");
startActivity(Intent.createChooser(duo, "Duo is not installed."));