there are few questions about this issue but none of them seems to help me, I have a dialog with a "Share in SMS" button. when I press it, I want to show the sms apps that can send it. it's working, but I get waaaaay more apps then I want. I want to only show the apps that are suppose to send sms, but it shows EVERYTHING.. linkedin, Facebook, gmail, basically every app.
i want only Messaging apps such as Messenger, and the default phone msg apps.
here's my current code :
Intent intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TEXT,
SharedPref.getNamePrefValue() +
" shared " + doc.getName());
startActivity(intent);
how can I give only the apps i want in the list? I have tried "playing" with different setType options but none of them worked.
thanks a lot for helping!