Resim Açılmıyor
Merhaba arkadaşlar, boyutu "64800 x 480" olan bir resmi bitmap e dönüştürüp "
Bitmap bitmap = BitmapFactory.decodeFile(adapter.al_menu.get(int_position).getAl_imagepath().get(i));
" bu kod satırı ile imageview e aktarmak istiyorum, ancak şöyle bir hata veriyor:
E/AndroidRuntime: FATAL EXCEPTION: main
Process: galleryimages.galleryimages, PID: 25181
java.lang.OutOfMemoryError: Failed to allocate a 124416012 byte allocation with 16772408 free bytes and 107MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeStream(Native Method)
at android.graphics.BitmapFactory.decodeStreamInternal(BitmapFactory.java:681)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:657)
at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:430)
at android.graphics.BitmapFactory.decodeFile(BitmapFactory.java:456)
at galleryimages.galleryimages.MainActivity$2.onItemClick(MainActivity.java:91)
at android.widget.AdapterView.performItemClick(AdapterView.java:315)
at android.widget.AbsListView.performItemClick(AbsListView.java:1204)
at android.widget.AbsListView$PerformClick.run(AbsListView.java:3321)
at android.widget.AbsListView$4.run(AbsListView.java:4382)
at android.os.Handler.handleCallback(Handler.java:836)
at android.os.Handler.dispatchMessage(Handler.java:103)
at android.os.Looper.loop(Looper.java:203)
at android.app.ActivityThread.main(ActivityThread.java:6251)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1063)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:924)
neden veriyor bu hatayı