i have bitmap in ActivityA i want to pass the bitmap from here to ActivityB, i googled for this. when i use this
Intent intent = new Intent(this, NewActivit
I tried and its working as below using intent.putExtra("name", bitmap)
While passing with intent,
Intent intent = new Intent(Current.this, Next.class);
intent.putExtra("bmp", bitmap);
startActivity(intent);
While fetching,
Bitmap bitmap = getIntent().getParcelableExtra("bmp");
OR
Other option is to use Application class,
You can also use a class that extends Application and have a setter getter for Bitmap and call it from every Acitivity.
((myApplication_class_name)getApplication()).setBitmap(bmp);
and fetch the Bitmap using,
((myApplication_class_name)getApplication()).getBitmap();