如何使用 Google Voice 启动特定 Intent (例如调用)?如何使用 Intent 传递电话号码?以下代码启动谷歌语音,但是使用谷歌语音作为 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 ? 感谢任何帮助...提前致谢...
最佳答案
永远不要像这样直接定位应用程序,除非它在你的包中。您应该使用 Intent 过滤器来捕获该特定应用程序。有时您必须以这样的应用程序为目标,但这会带来包名称错误更改的风险。
要处理您的特定应用程序,您需要了解信息如何传递到 Google 语音中。这将为您提供洞察力以及如何不定位确切的包名称。
关于java - Android:如何使用谷歌语音启动调用 Intent ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9059871/