I am trying to pass an image which is from the mobile media. I am able to get the image from the media but I need to send that image to the next activity. How can I send tha
You can use like:
I suppose that: send image to Activity B from A
Actvity: A
Intent i = new Intent(A.this,B.class);
i.putExtra("image_send",bitmap)
//with bitmap is image that you want to send.
startActivity(i);
Activity B:
//receive image
Bitmap b = (Bitmap) getIntent().ParcelableExtra("image_send")
for this first u save that image in one file and in other activity take that image from that file
To pass the data between two activities:
bytes[] imgs = ... // your image
Intent intent = new Intent(this, YourActivity.class);
intent.putExtra("img", imgs);
startActivity(intent);
Then in YourActivity:
bytes[] receiver = getIntent().getExtra("imgs");