I am developing an application which show large no of images in grid view. after that if user select any of this image it shows him in gallery view.
So I have 2 questions as
1) Is their any way by which we can download large no of images as I get error
java.lang.OutOfMemoryError Bitmap size exceeds VM budget.
2) Can I use same adapter I used to show grid view to gallery view.
Thank You.
for 1st question u have to scaled Bitmap otherwise it will not take large image (means large in size) like bellow,
imageView.setImageBitmap(Bitmap.createScaledBitmap(bitmap1, 300,
300, true));
so that a big size image scaled into specified size.
for 2nd question I think u have to take two separate adapter.(but not confirm)