I am reading some images from SD card and showing them in a list view here is the code from Custom List Adapter
File imgFile = new File(act.getimage());
Bitmap myBitmap = BitmapFactory.decodeFile(imgFile.getAbsolutePath());
holder.picView.setImageBitmap(myBitmap);
but while loading this listView i get outOfMemory Exception
. is this because of size of images ?
Here is the LogCat
04-04 14:49:37.372: E/AndroidRuntime(18934): FATAL EXCEPTION: main
04-04 14:49:37.372: E/AndroidRuntime(18934): java.lang.OutOfMemoryError
04-04 14:49:37.372: E/AndroidRuntime(18934): at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)