Reputation: 11
How to pass a Bitmap
object between the two Activity
instances?
Upvotes: 1
Views: 213
Reputation: 56925
Bitmap implements Parcelable, so you could always pass it in the intent:
Intent intent = new Intent(this, YourNewActivity.class);
intent.putExtra("BitmapImage", bitmap);
and retrieve it on the other end
Bitmap bitmap = (Bitmap) intent.getParcelableExtra("BitmapImage");
Upvotes: 2