title: Android share intent on specific application and from Bitmap resource
body: <p>I'm trying to share from my app to Hyves using share intent. If I have hyves app installed and share from gallery it switch to hyves app, and upload image correctly to hyves, so it should work.</p>
  
  <p>Problem is, I can't find it documented how should proper intent for hyves work, but I assume that gallery uploads images only, so I have this:</p>
  
  <pre><code>Bitmap image = BitmapFactory.decodeFile(MyGlobals.INSTANCE.activeSetting.f_image_path);
  </code></pre>
  
  <p>It's line of code where I pull my "active" or "selected" image within my app. At this point image is saved to SD Card, so I might read uri instead of decoding file, but I want it this way to have same approach for both hyves and facebook. </p>
  
  <p>Then I call:</p>
  
  <pre><code>Intent hyvesIntent = new Intent(Intent.ACTION_SEND);
   hyvesIntent.setPackage("com.hyves.android.application");
   hyvesIntent.setType("image/jpeg");
   hyvesIntent.putExtra("image", image);
   startActivityForResult(hyvesIntent, 666);
  </code></pre>
  
  <p>First of all, I'm not sure if setPackage is OK to be used here, but I'm checking if this package exist to enable / disable share, and this is package name that is visible. </p>
  
  <p>I need Activity result to then notify that Image is shared or not. </p>
  
  <p>What happens here it starts the Hyves app, but I get full white screen, and then the Hyves app times out. </p>
  
  <p>So, Can I use Bitmap in intent, and is it OK to setPackage or should I setClass?</p>
  
  <p>Tnx</p>