0
我正在致力于文本共享来自我的Android应用。我已经使用了下面的代码。Android在Facebook上代替链接分享文字
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
String text="http://google.com";
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT,text);
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Message");
startActivity(Intent.createChooser(sharingIntent, "Share using"));
如果我将此代码表示它正确地共享链接并显示如下图像! Attached Image
当我使用普通的文本,如“样本含量”是指它不接受和显示文本....我需要共享文本,而不是该链接..请帮我...
其工作正常Gmail和Twitter也。
等待更好的响应.....提前
感谢您的迅速回复@Ollie C .. – RAJESH 2012-03-16 11:39:33
@Ollie ..通过使用Facebook API,可以在发布内容之前每次获得用户验证......现在我有一个样本,例如“我们第一次需要注册..如果我们做了一次..通过点击分享按钮,它会自动张贴在Facebook墙上的内容...我既不需要用户确认....在此先感谢..... – RAJESH 2012-03-16 12:10:26
我建议问一个新的问题,并适当地标记它,记住投票答案,并接受回应,因为更多的人将在未来回答你的问题。 – 2012-03-16 12:17:46