android - sending imageviews from one activity to the other -


i trying send imageviews 1 activity other,i have seen other questions similar 1 , suggestions regarding sending id of imageview 1 activity other,but in case difference sending more 1 imageviews,and these imageviews created dyamically bigger imageview, i.e creating 12 small imageviews bigger imageview using bitmap resized=bitmap.createbitmap(bmp, 0, 0, width, height); in such way combination of of them give me original bigger imageview, , want pass them next activity. hence want suggestions procedure following,and how can in better way. !

  • edit: capturing photo using camera,and assiging imageview first,then want divide imageview twelve small parts , assigning 12 imageviews dynamically,and display each of them distinctly in next activity.

i required implement similar case.

first of cannot send big bitmap objects through intents. crashes application because intents, believe, have smaller capacity 1mb.

you have following options:

1-send image file paths through intent extras.

2-save image file path in static field , read in other activity.

3-save bitmap file , send path using option (1,2) , delete image file in new activity.

4-put image bitmaps in static arraylist of bitmaps , read in other activity.

5-put image filenames in static arraylist of strings , read in other activity.

basically, have recreate them in new activity or save them in static field , read there afterwards.

maybe can implement more complicated solution like, if application have sdcard write access write file else save in memory using static arraylist.

what that, when picturecallback getting image data, save on sdcard , return path other activities.


Comments