If I send only text, the option to share shares does NOT give Facebook / Twitter as an option.
Only Gmail, Skype and Evernote are options.
Here is my code
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("plain/text");
shareIntent.putExtra(Intent.EXTRA_TEXT, text)
startActivity(Intent.createChooser(shareIntent, "Share using"));
I tried a different combination of setType () without joy, including "text / *", "text / html" and passing the HTML text to putExtra as follows:
shareIntent.putExtra(Intent.EXTRA_TEXT, Html.fromHtml("<p>This is the text that will be shared.</p>"));
When I use "text / plain", Facebook appears as an option, but when it is selected, the text does not load. But the text is downloaded for Twitter, email, SMS.
Has anyone else encountered this problem?
When I share my image, there is no problem, and Facebook, along with other applications on social networks, are available on the list.