gpt4 book ai didi

android - 打开 Google Plus 应用程序的二维码

转载 作者:行者123 更新时间:2023-11-29 04:27:34 24 4
gpt4 key购买 nike

我正在尝试通过可扫描的二维码链接我组织的 Google+ 信息页。当他们扫描代码时,他们会在移动浏览器中进入 Google+ 页面。 有没有办法让手机打开 Google+ 应用程序访问我们的页面?我知道您可以使用 Facebook (fb://page/), Twitter *(twitter://user?screen_name=),* 和 Foursquare *(foursquare://venues/VENUE_ID)*

最佳答案

您可能应该使用适当的 Intent.ACTION_VIEW 启动 Activity。如果用户安装了 Google+,则应启动应用程序。

startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("https://plus.google.com/yourlink")));

另请参阅此page或者这个page

关于android - 打开 Google Plus 应用程序的二维码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12119699/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com