Passing android Bitmap Data within activity using Intent in Android

前端 未结 7 1578
梦如初夏
梦如初夏 2020-11-22 09:36

I hava a Bitmap variable named bmp in Activity1 , and I want to send the bitmap to Activity2

Following is the code I use to pass it with the intent.

7条回答
  •  难免孤独
    2020-11-22 09:51

    Bundle b = new Bundle();
    b.putSerializable("Image", Bitmap);
    mIntent.putExtras(b);
    startActivity(mIntent);
    

提交回复
热议问题