gpt4 book ai didi

android - PlusShare 生成器 setContentUrl() 覆盖 setText()

转载 作者:行者123 更新时间:2023-11-30 03:12:14 26 4
gpt4 key购买 nike

我想按照文档中的说明使用 PlusShare.Builder 共享 Google Play 游戏,但 setText 无效:

Intent shareIntent = new PlusShare.Builder(this)
.setType("text/plain")
.setText(getString(R.string.share))
.setContentUrl(Uri.parse("https://play.google.com/store/apps/details?id=fr.pixelprose.dice"))
.getIntent();

只有链接与 Google Play 图标一起显示,但 setText 没有任何效果,没有显示任何内容。我试图放置一个常量 String setText("My sample text") 但它也不起作用...... Google Play 链接是否有限制?

最佳答案

目前是 google-plus-platform 的问题:

Issue: Code Google.com

单独使用 .setText(message) 或单独使用 .setContentUrl(Uri.parse(link))

使用 .setContentUrl(uri) 将覆盖文本。

关于android - PlusShare 生成器 setContentUrl() 覆盖 setText(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20744442/

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