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.
While I am doing this I am getting the following error ( Can't parcel a recycled bitmap error occurs)
I want to send this bitmap to another Activity.
How can I check whether I am getting the image or not?
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();
Thanks