I would like to display a sharing intent as list like this:
but in my case it is displayed like this and i don't want this:
After looking many posts, i am unable to find how to do it.
Help welcome.
my code:
Intent sharingIntent = new Intent(android.content.Intent.ACTION_SEND); sharingIntent.setType("text/plain");
String shareBody = "https://google.com";
sharingIntent.putExtra(android.content.Intent.EXTRA_SUBJECT,"google");
sharingIntent.putExtra(android.content.Intent.EXTRA_TEXT, shareBody);
startActivity(Intent.createChooser(sharingIntent, "share"));