Skip to content Skip to sidebar Skip to footer

Read Images Byte By Byte From Android Internal Storage Takes Too Much Time

I'm trying to display images from android internal storage, I have only 4images(the images are screen shots taked before), I display these images in a GridView, it works, but it ta

Solution 1:

To be faster is indicated to reduced the image size. It can be done using the Bitmap decodeFile (String pathName, BitmapFactory.Options opts)

Look this example:

publicBitmapgetReducedBitmap(String path) {
    BitmapFactory.Options opt = newBitmapFactory.Options();
    opt.inSampleSize=4; // reduced the image to 1/4 of the orignal sizereturnBitmapFactory.decodeFile(path, opt);
}

Solution 2:

Post a Comment for "Read Images Byte By Byte From Android Internal Storage Takes Too Much Time"