In my app i am displaying no.of images from gallery from where as soon as I select one image , the image should be sent to the new activity where the selected image will be
I've found the easiest (but definitely not the most elegant) way is to use a static class member. eg:
class PassedData
{
public Bitmap bm1, bm2, etc;
private PassedData current;
public static PassedData getCurrent() {return current;}
public PassedData()
{
current = this;
}
}
Then each activity can reference PassedData.getCurrent().