Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/224.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 安卓:如何使用谷歌语音启动呼叫意图?_Java_Android - Fatal编程技术网

Java 安卓:如何使用谷歌语音启动呼叫意图?

Java 安卓:如何使用谷歌语音启动呼叫意图?,java,android,Java,Android,如何使用谷歌语音启动特定意图(如通话)?如何使用intent传递电话号码?下面的代码启动了谷歌语音,但使用谷歌语音作为额外的意图通话,传递的值是多少 final Intent intent = new Intent(); intent.setComponent(new ComponentName("com.google.android.apps.googlevoice", "com.google.android.apps.googlevoice.activity.conversationlist

如何使用谷歌语音启动特定意图(如通话)?如何使用intent传递电话号码?下面的代码启动了谷歌语音,但使用谷歌语音作为额外的意图通话,传递的值是多少

final Intent intent = new Intent();
intent.setComponent(new ComponentName("com.google.android.apps.googlevoice", "com.google.android.apps.googlevoice.activity.conversationlist.ConversationListActivity"));

intent.putExtra("label", "<phone number>");

startActivity(intent);
最终意图=新意图();
intent.setComponent(新组件名(“com.google.android.apps.googlevoice”、“com.google.android.apps.googlevoice.activity.conversationlist.ConversationListActivity”);
intent.putExtra(“标签”);
星触觉(意向);
在这里,我应该在标签中添加什么来启动使用谷歌语音启动呼叫的意图?
感谢您的帮助。。。提前感谢…

除非软件包中有这样的应用程序,否则不要直接针对这些应用程序。您应该使用Intent过滤器来捕获特定的应用程序。有时您必须以这样的应用程序为目标,但这会带来更改包名错误的风险

要处理您的特定应用程序,您需要查看信息是如何传递到GoogleVoice的。这将使您了解如何在不以确切的包名为目标的情况下以为目标