0
Intent shareIntent = new Intent(Intent.ACTION_SEND);
shareIntent.setType("text/plain");
shareIntent.putExtra(Intent.EXTRA_TEXT, text);
shareIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
startActivity(Intent.createChooser(intent, "Invite with"));

The above code opens a dialog showing following apps:- Bluetooth, Email, Whatsapp, messages.

What i want to achieve is show all apps that uses phone number as primary source of contacting users. Eg. sms, whatsapp,viber..etc. Email Apps, Browsers... would not be on the list.

Thanks.

Belvi Nosakhare
  • 3,107
  • 5
  • 32
  • 65
  • See this http://stackoverflow.com/questions/9730243/how-to-filter-specific-apps-for-action-send-intent-and-set-a-different-text-for – Rohit5k2 Feb 17 '16 at 13:52
  • Please explain, in actual computer programming terms, what defines "apps that uses phone number as primary source of contacting users". – CommonsWare Feb 17 '16 at 13:52
  • @CommonsWare what i meant is : Apps that can send data to recipient via phone number. Like the message app on a users device, whatsapp uses phone number as well, viber is another example. But Email applications does not do this, browsers, file sharing apps.. etc. – Belvi Nosakhare Feb 17 '16 at 13:57
  • That's an end-user statement. In **actual computer programming terms**, what defines "apps that uses phone number as primary source of contacting users"? – CommonsWare Feb 17 '16 at 14:24

0 Answers0