Bitmap in Intent loses dimensions
<p>In Activity 1, I add a bitmap sized 100 x 100 px to an intent:     </p>

<pre><code>Intent intent = new Intent(view.getContext(), Activity2.class);
intent.putExtra("image",bitmap);
startActivity(intent);
</code></pre>

<p>In Activity 2, I want to add the received bitmap to imageView like so: </p>

<pre><code>protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.single_color);


        if(getIntent().hasExtra("image")){
             ImageView imageView = (ImageView)findViewById(R.id.imageviewSingleColor);
             Bitmap bitmap = (Bitmap) this.getIntent().getParcelableExtra("image");

             imageView.setImageBitmap(bitmap);
        }
</code></pre>

<p>But in Activity 2, the bitmap has lost its dimensions and is now -1 x -1 pixels but has kept its density. I've tried to find an explanation online for a few hours now. Appreciate any help. </p>
