My Android app contains links, I want to share this link on Facebook. I used Intent.ACTION_SEND
but why
Facebook icon is not shown on Activity Chooser
, my code:
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?"));
0 comments:
Post a Comment