java.lang.IllegalStateException: Can't parcel a recycled bitmap error occurs
<p>I am trying to use the following code to get the bitmap of image,which is taken from camera.
I used this concept because I am adding image as a watermark to the picture taken.So I just make the Activity to draw as a bitmap.</p>

<p>While I am doing this I am getting the following error ( Can't parcel a recycled bitmap  error occurs)</p>

<p>I want to send this bitmap to another Activity.</p>

<p>How can I check whether I am getting the image or not?</p>

<pre><code>else if(v.equals(findViewById(R.id.ok_button))){


                topbar.setVisibility(View.GONE);
                menubar.setVisibility(View.GONE);
                bottom.setVisibility(View.GONE);

                View s = ml.getRootView();
                s.setDrawingCacheEnabled(true);

                b = s.getDrawingCache();
                Log.e("ok","ok");
                Intent i=new Intent(CameraActivity.this,Update.class);
                 i.putExtra("data",b);
                 startActivity(i);
      //           s.setDrawingCacheEnabled(false);
        //         s.setVisibility(View.GONE);
                 finish();
</code></pre>

<p>Thanks</p>
