Firstly, My app’s function is to read the article. When a user reads the article and he want to share the article to facebook or others, I cannot find link/ hyperlink from the type.
Here is my sharing function
private void shareIt() {
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND);
sharingIntent.setType("text/plain");
String shareBody = "Here is the share content body";
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT, "Subject Here");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
startActivity(Intent.createChooser(sharingIntent, "Share via"));
}
The thing that i want is the share function when using computer to read the article and got the share button. In the sharing medium, it will appear as the content of the article instead of plain text.
So, how to edit the code so that i can share a link?
Do guide me on Manifest.xml, i am not sure interfilter need to add which category too.
Second, i saw the sharing list, the built-in list not so good for me because i want those those facebook, sina, twitter instead of google, gmail, bluetooth, line or messaging.
So, how to implement the list of sharing through java?
It could be like this
Precondition: you must import BB facebook sdk.