简体   繁体   English

可以从我自己的 Xamerin Android 应用程序启动 Google 助理吗?

[英]Possible to launch the Google Assistant from my own Xamerin Android application?

Is it possible to launch the Google Assistant from my own Xamerin Android application instaed of long press the home button?是否可以从我自己的 Xamerin Android 应用程序启动 Google 助理,而不是长按主页按钮? I have done some research and there are plenty of examples where the Google Assistant can call your own application but not the way around.我做了一些研究,有很多例子表明 Google Assistant 可以调用你自己的应用程序,但不能反过来。 Is Google allowing users to launch the Assistant in other ways than speech and the home button?谷歌是否允许用户以语音和主页按钮以外的其他方式启动智能助理?

Just start its activity com.google.android.apps.googleassistant/.AssistantActivity I believe something like below should do the trick刚开始它的活动com.google.android.apps.googleassistant/.AssistantActivity我相信像下面这样的东西应该可以解决问题

Intent i = new Intent();
i.setPackage("com.google.android.apps.googleassistant");
i.setClassName("com.google.android.apps.googleassistant.AssistantActivity");
startActivity(i);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当Nest转到Google Assistant时,如何使用Firebase使用自己的C#应用​​程序获取并设置Nest的温度状态 - When Nest goes to Google Assistant, how can I use my own C# application, using Firebase, to get and set the temperature status of the Nest UWP从WPF应用程序启动我的应用程序 - UWP to launch my application from WPF application Xamarin Android 从前台通知启动应用程序 - Xamarin Android Launch Application from Foreground Notification 从我的应用程序启动Android视频应用程序 - Launch the android Video App from my app 我无法从我的 UWP 应用程序启动 a.exe - I can't launch a .exe from my UWP application Windows Phone 8.1运行时:如何从我自己的应用程序中启动相册应用程序? - Windows Phone 8.1 runtime: How to launch the photo gallery app from my own app? 如何从Windows Phone 8.1中自己的应用程序启动其他应用程序? - How do I launch other app from my own app in Windows Phone 8.1? 从我自己的应用程序中退出GoogleDrive API - Logout from GoogleDrive api from my own application NUnit:是否可以从我的应用程序中引用类? - NUnit: is it possible to reference classes from my application? 是否可以根据以下内容在应用程序启动时添加弹出窗口? - Is it possible to add a popup on application launch depending on the following?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM