I'm using UniversalImageLoader library to load the images into the GridView. And i'm having the images in the form of byte array.
How to use UniversalImageLoader with ArrayList of byte arrays
I'm getting the byte array from the my SQlite Database.
I'm using UniversalImageLoader library to load the images into the GridView. And i'm having the images in the form of byte array.
How to use UniversalImageLoader with ArrayList of byte arrays
I'm getting the byte array from the my SQlite Database.
Try this method use to byte array object pass this method and bitmap arraylist in store bitmap and pass CustomGridViewAdapter in pass this array list in Adapter and set bitmap in imageview
void setImage2(byte[] byteImage2) {
BitmapFactory.Options options = new BitmapFactory.Options();
options.inDither = false;
options.inJustDecodeBounds = false;
options.inPreferredConfig = Bitmap.Config.ARGB_8888;
options.inSampleSize = 1;
options.inPurgeable = true;
options.inPreferQualityOverSpeed = true;
options.inTempStorage = new byte[32 * 1024];
Bitmap bmp = BitmapFactory.decodeByteArray(byteImage2, 0,
byteImage2.length, options); // this bitmap store in Bitmap ArrayList in add
}