title: make background of bitmap transparent android when send its Uri to another activity
body: <p>here I am making a bitmap that its background is transparent but it dose not works and make background black:</p>
  <pre><code>    Bitmap baseBitmap = null;
      Canvas canvas;
      Bitmap mergedBitmap = null;
      baseBitmap = imageViewToBitmap(imgForground);
      mergedBitmap = Bitmap.createBitmap(baseBitmap.getWidth(), baseBitmap.getHeight(), Bitmap.Config.RGB_565);
      canvas = new Canvas(mergedBitmap);
      canvas.drawBitmap((baseBitmap), matrix, null);
  </code></pre>
  <p>and here is the function I use to extract bitmap out of imageview:</p>
  <pre><code>public Bitmap imageViewToBitmap(ImageView imageView) {
      Drawable drawable = imageView.getDrawable();
      Bitmap bitmap = Bitmap.createBitmap(drawable.getMinimumWidth(), drawable.getMinimumHeight(), Bitmap.Config.ARGB_8888);
  
      Canvas canvas = new Canvas(bitmap);
      drawable.setBounds(0, 0, canvas.getWidth(), canvas.getHeight());
      drawable.draw(canvas);
      return bitmap;
  }
  </code></pre>
  <p>send it to other activity:</p>
  <pre><code>Intent intent = new Intent(EditImageActivity.this, FilterImageActivity.class);
  intent.putExtra(&quot;uri&quot;, getImageUri(getApplicationContext(), bitmap).toString());
  startActivity(intent);
  </code></pre>
  <p>and the function getImageUri is :</p>
  <pre><code>public Uri getImageUri(Context inContext, Bitmap inImage) {
      ByteArrayOutputStream bytes = new ByteArrayOutputStream();
      inImage.compress(Bitmap.CompressFormat.PNG, 100, bytes);
      imgForground.setImageBitmap(inImage);
      String path = MediaStore.Images.Media.insertImage(inContext.getContentResolver(), inImage, &quot;Title&quot;, null);
      return Uri.parse(path);
  }
  </code></pre>
  <p>in the other activity using getintent the image background it black:</p>
  <pre><code> Intent intent = getIntent();
  
     Uri uri = Uri.parse(intent.getStringExtra(&quot;uri&quot;));
                  imageView.setImageBitmap(bmp);
  </code></pre>