Issue
I have the next share ImageView button in my android project:
final ImageView share = findViewById(R.id.btn_share);
share.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent myIntent = new Intent(Intent.ACTION_SEND);
myIntent.setType("text/plane");
myIntent.putExtra(Intent.EXTRA_TEXT, some_url_from_my_app);
startActivity(Intent.createChooser(myIntent, "Share Using"));
}
});
My problem is when i click on the button i am seeing only few apps and not all the apps in my phone as i want, like Facebook, Instagarm etc...
What should i do in order to see all the apps in my phone in order to be able to share the link to all of them?
Solution
After some investigation and few hours I managed to solve the issue. What I have done is instead of doing:
myIntent.setType("text/plane");
I made it like:
myIntent.setType("text/*");
That's showed me all the apps for sharing. And about the Facebook share I used the Facebook sdk.
Answered By - Danny