作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我想按照文档中的说明使用 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 的问题:
单独使用 .setText(message)
或单独使用 .setContentUrl(Uri.parse(link))
。
使用 .setContentUrl(uri)
将覆盖文本。
关于android - PlusShare 生成器 setContentUrl() 覆盖 setText(),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20744442/
我关注这个Google link在我的应用程序中创建共享功能。但是,Android Studio 无法解析示例代码中的符号 PlusShare。 我的 google play 服务已更新到最新版本 (
我想按照文档中的说明使用 PlusShare.Builder 共享 Google Play 游戏,但 setText 无效: Intent shareIntent = new PlusShare.Bu
我是一名优秀的程序员,十分优秀!