如何为社交媒体创建一些特定的share intent
?
目前,我的代码是这样的:
Intent share = new Intent(android.content.Intent.ACTION_SEND);
share.setType("text/plain");
share.putExtra(android.content.Intent.EXTRA_EMAIL, new String[] {});
share.putExtra(Intent.EXTRA_SUBJECT, "The EssexPass");
share.putExtra(Intent.EXTRA_TEXT, "Deal Name: " + Bussinessname);
share.putExtra(Intent.EXTRA_TEXT, "Deal: " + deals);
share.putExtra(Intent.EXTRA_TEXT, "Address: " + city + "," + country);
Log.e("Share intetn", "25th April ::-" + share);
startActivity(Intent.createChooser(share, "Share Deal"));
我将此代码用于share intent
,但在facebook
我无法分享。
答案 0 :(得分:2)
Facebook应用中的错误。您可以在此处找到更多详细信息:Android and Facebook share intent
Facebook不会修复这个错误,他们说它是"设计"他们 打破了Android共享系统: https://developers.facebook.com/bugs/332619626816423