title: Custom Image Sharing Dialog to other apps
body: <p>I have an app which shares and receive images from other apps. I have two problems here </p>
  
  <ul>
  <li>On sharing Image from some other place let say from gallery my app is showing but with its whole package name i.e. com.test.myapp instead of only with the app name </li>
  </ul>
  
  <p>here is the manifest of it </p>
  
  <pre><code>    &lt;activity
          android:name=".newdesign.SplashActivity"
          android:label="@string/app_name"
          android:screenOrientation="portrait"
          android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.MAIN" /&gt;
  
              &lt;category android:name="android.intent.category.LAUNCHER" /&gt;
          &lt;/intent-filter&gt;
          &lt;intent-filter&gt;
              &lt;action android:name="android.intent.action.SEND" /&gt;
  
              &lt;category android:name="android.intent.category.DEFAULT" /&gt;
  
              &lt;data android:mimeType="image/*" /&gt;
          &lt;/intent-filter&gt;
      &lt;/activity&gt;
  </code></pre>
  
  <ul>
  <li>Secondly, Ion sharing the image from my app I don't want to display my own app on the share dialog, but when I remove my app I get some unwanted system apps along with some app with default android icons.</li>
  </ul>
  
  <p>here is the sharing code </p>
  
  <pre><code>    List&lt;Intent&gt; targetedShareIntents = new ArrayList&lt;Intent&gt;();
          Intent share = new Intent(android.content.Intent.ACTION_SEND);
          share.setType("image/*");
          List&lt;ResolveInfo&gt; resInfo = ExportOrSaveActivity.this.getPackageManager().queryIntentActivities(createShareIntent(), 0);
          if (!resInfo.isEmpty()) {
              for (ResolveInfo info : resInfo) {
                  Intent targetedShare = createShareIntent();
                  if (!info.activityInfo.packageName.equalsIgnoreCase("com.test.myapp1") &amp;&amp; !info.activityInfo.packageName.equalsIgnoreCase("com.test.myapp2")) {
                      targetedShare.setPackage(info.activityInfo.packageName);
                      targetedShareIntents.add(targetedShare);
                  }
              }
              Intent chooserIntent = Intent.createChooser(targetedShareIntents.remove(0),
                      "Select app to share");
              chooserIntent.putExtra(Intent.EXTRA_INITIAL_INTENTS,
                      targetedShareIntents.toArray(new Parcelable[] {}));
              startActivity(chooserIntent);
  </code></pre>
  
  <p>Thanks in advance </p>