【发布时间】:2016-02-01 08:53:28
【问题描述】:
我正在处理所有默认可用应用程序中的文本共享,例如facebook、gmail..等。
这里我放了我的代码快照。
final Intent emailIntent1 = new Intent(
android.content.Intent.ACTION_SEND);
emailIntent1.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
emailIntent1.setAction("https://play.google.com/store");
emailIntent1.putExtra(Intent.EXTRA_TEXT,"https://play.google.com/store");
emailIntent1.setType("image/png");
startActivity(Intent.createChooser(emailIntent1, "send"));
我的问题是,我无法在 facebook 上分享文字。
我们将不胜感激。
【问题讨论】:
-
@RavindraKushwaha 我不想使用 facebook sdk 分享。我想使用意图分享。
-
你的具体问题是什么
-
我想把“play.google.com/store”这个文字分享到facebook。
-
type 应该是 text/plain
emailIntent1.setType("text/plain")
标签: android facebook android-intent