I've gone through this: How to send an object from one Android Activity to another using Intents?
But i'm facing problem in sending images in the object to the other activity.
Please help.
I've gone through this: How to send an object from one Android Activity to another using Intents?
But i'm facing problem in sending images in the object to the other activity.
Please help.
Convert your Drawable to Bitmap and send it to Another Activity.
To send,
To Fetch,
Well you can't really send images with intents since you can attach as extras to intents only
Serializable
objects. But you can store images (in memory in different structures (like HashMaps, using hashmap will give you some speed optimization for searching that image)) and send notification to other activity to read from hasmap. You can add the key for the image in hashmap as string in extras attached to intent. Or you can just cache the image and send it's name/path via intents :)Hope this helps :)