Android remove hide some share option form ShareActionProvider

view story

http://stackoverflow.com – I have tired this code to create action bar with share option Intent I= new Intent(Intent.ACTION_SEND); I.setType("text/plain"); I.putExtra(android.content.Intent.EXTRA_TEXT, "My Test Text"); startActivity(Intent.createChooser(I,"Share using ...")); @Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate your menu. getSupportMenuInflater().inflate(R.menu.share_action_provider, menu); // Set file with share history to the provider and set the share intent. MenuItem item = menu.findItem(R.id.menu_item_share_action_provider_action_bar); ShareActionProvider provider = (ShareAct (HowTos)