0
我試圖在單擊按鈕時顯示Facebook應用程序以共享一行文本。現在,選擇器實際上工作並顯示一堆應用程序,但不是Facebook。不知道是因爲ACTION_SEND,但這是我的。誰能幫忙?謝謝。Android:以intent.creatChooser顯示Facebook應用程序
public void invite(View view){
Intent sharingIntent = new Intent(Intent.ACTION_SEND);
sharingIntent.setType("text/html");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, Html.fromHtml("<p>I just played Trivia Knowledge on Android. Think you can beat my Score?</p>"));
startActivity(Intent.createChooser(sharingIntent,"Invite Friends To Play Trivia Knowledge"));
}
推測Facebook不支持通過ACTION_SEND共享HTML。 – CommonsWare 2013-05-02 00:31:34