我的Android应用程序包含链接,我想在Facebook上分享此链接。我用Intent.ACTION_SEND
但为什么Activity Chooser
没有显示Facebook和Youtube不会显示在Android Activity Chooser
Facebook的图标,我的代码:
Intent sharing = new Intent(Intent.ACTION_SEND);
sharing.setType("text/html");
sharing.putExtra(Intent.EXTRA_SUBJECT, "Check out this video");
sharing.putExtra(Intent.EXTRA_TEXT,
"https://www.youtube.com/watch?v=" + videoUrl);
startActivity(Intent.createChooser(sharing, "What to share?"));
它不工作:( – Binngokute 2014-10-31 18:09:24
这是我使用使用特定的应用程序,包括Facebook共享文本的代码。它在这里完美的工作。其他应用程序出现在选择器?也许你的问题与Facebook应用程序本身有关http://pastebin.com/JhYzdL4s – 2014-10-31 18:30:53
不错!我工作:) – Binngokute 2014-11-01 03:32:18