title: How i pass Bitmap or Drawable from one Activity to another?
body: <p>I would like to pass Bitmap or Drawable from one Activity to another, now i'm doing this:</p>
  
  <pre><code>            EventPhoto photo = (EventPhoto) parent.getItemAtPosition(position);
  
              BitmapDrawable test = (BitmapDrawable) photo.getDrawable();
              Bitmap bitmap = test.getBitmap();
              ByteArrayOutputStream baos = new ByteArrayOutputStream();
              bitmap.compress(Bitmap.CompressFormat.PNG, 0, baos); 
              byte[] b = baos.toByteArray();
  
              Intent intent = new Intent(EventDetailActivity.this, ImageExpandActivity.class);
              System.out.println(b.length); //B LENGTH = 908k
              intent.putExtra("image",b);
              startActivity(intent);
  </code></pre>
  
  <p>My problem is when i try to use putExtra, he don't send any exception, nothing, but don't respond and Android kill application, why this is happen?
  I'm thinking its about size because everything works when i pass a little image.</p>
  
  <p>I'm looking for and find few solutions like this: <a href="https://stackoverflow.com/questions/8255123/how-to-pass-bitmap-from-one-activity-to-another">How to pass bitmap from one activity to another</a>
  but i want to use putExtra, any ideas? </p>
  
  <p>Thanks</p>