title: How to remove facebook,skype and Unnecessary option from email chooser on android
body: <p>In my app i am sending WAV file as attachment in email.while showing the email chooser the Indent.createChooser intent will list the email,gmail,facebook,skype,bluetooth and other unnecessary option it. i want to show only the Email and Gmail option. i do not know how to do that?
  Before you its possibly duplicate question i saw the following link and its does not help me.</p>
  
  <ol>
  <li><a href="https://stackoverflow.com/questions/10860499/how-to-send-recorded-voice-in-email">How to send recorded voice in email?</a></li>
  <li><a href="https://stackoverflow.com/questions/6255915/android-intent-chooser-to-only-show-e-mail-option">Android Intent Chooser to only show E-mail option</a></li>
  </ol>
  
  <p>As told in the above links i have tried <code>sendIntent.setType("audio/rfc822");</code>. Again it is display the same.</p>
  
  <p>my code sample:</p>
  
  <pre><code>    Intent sendIntent = new Intent(Intent.ACTION_SEND);
      sendIntent.putExtra(Intent.EXTRA_SUBJECT, "xxxxxxxxxxxx");
      sendIntent.putExtra(Intent.EXTRA_STREAM,Uri.parse("file://" + f.getAbsolutePath())); 
      sendIntent.setType("audio/wav");
      startActivity(Intent.createChooser(sendIntent, "Email file"));
  </code></pre>
  
  <p><strong>Updated Question:</strong> </p>
  
  <p>i have implemented a sample with listing  installed app and click item  on the list view i will launch the Gmail / Email app:  <strong><em>it is says "No Application can perform this operation".</em></strong></p>
  
  <p>To list the app in the list view:</p>
  
  <pre><code>-----------------
  List&lt;PackageInfo&gt; packs = packageManager.getInstalledPackages(0);
    for(int i = 0; i &lt; packs.size(); i++) {
       PackageInfo p = packs.get(i);
       ApplicationInfo a = p.applicationInfo;
       if ((includeSysApps) &amp;&amp; ((a.flags &amp; ApplicationInfo.FLAG_SYSTEM) == 1)) {
          continue;
       }
       App app = new App();
       app.setTitle(p.applicationInfo.loadLabel(packageManager).toString());
       app.setPackageName(p.packageName);
       app.setVersionName(p.versionName);
       app.setVersionCode(p.versionCode);
       app.setInstallDir(p.applicationInfo.sourceDir);
       app.setInstallSize(calculateSize(app.getInstallDir()));
       CharSequence description = p.applicationInfo.loadDescription(packageManager);
       app.setDescription(description != null ? description.toString() : "");
       apps.add(app);
       -----------
  </code></pre>
  
  <p>and in the onclick item event is:</p>
  
  <pre><code>                Intent sendIntent = new Intent(getPackageManager().getLaunchIntentForPackage(app.getPackageName()));
                  sendIntent.putExtra(Intent.EXTRA_SUBJECT, "xxxxxxxxxxxx");
                  sendIntent.putExtra(Intent.EXTRA_STREAM,Uri.parse("file://" + Environment.getExternalStorageDirectory().getPath()+"/Music/SalsaFav.mp3")); 
                  sendIntent.setType("audio/wav");
                  startActivity(Intent.createChooser(sendIntent, "Email file"));
  </code></pre>
  
  <p>please help me.</p>