我嘗試在Android Studio中的片段分享圖片至Facebook如何使用android studio將圖片或文本從片段分享到Facebook?
.....應用有很多碎片,所以如果我按「共享」這個片段的畫面將分享我的Facebook等其餘的。
我使用意向共享文本,但這個不行:
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TEXT, desc.getText().toString());
startActivity(Intent.createChooser(intent, "Share with"));
share(desc.getText().toString());
感謝
請具體說明您已經做了什麼以及您想要實現的目標。併發布一些相關的代碼,以便讓我們瞭解您的問題。 –