Out Of Memory Error Android ImageViews -



Out Of Memory Error Android ImageViews -

okay, in app have multiple imageviews each holding .png icon. right there 7... , yet app, @ random intervals, crash anr dialog (app not responding) , throws exception:

10-08 00:14:15.528 32732-32732/com.antechdevelopment.notificationreminders e/androidruntime﹕ fatal exception: main process: com.antechdevelopment.notificationreminders, pid: 32732 java.lang.outofmemoryerror @ android.graphics.bitmapfactory.nativedecodeasset(native method) @ android.graphics.bitmapfactory.decodestream(bitmapfactory.java:677) @ android.graphics.bitmapfactory.decoderesourcestream(bitmapfactory.java:507) @ android.graphics.drawable.drawable.createfromresourcestream(drawable.java:872) @ android.content.res.resources.loaddrawable(resources.java:3024) @ android.content.res.resources.getdrawable(resources.java:1586) @ android.app.applicationpackagemanager.getdefaultactivityicon(applicationpackagemanager.java:783) @ com.android.internal.policy.impl.phonewindow.installdecor(phonewindow.java:3466) @ com.android.internal.policy.impl.phonewindow.getdecorview(phonewindow.java:1879) @ android.view.window.findviewbyid(window.java:924) @ android.app.activity.findviewbyid(activity.java:1965) @ android.app.activity$1.findviewbyid(activity.java:745) @ android.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:880) @ android.app.fragmentmanagerimpl.movetostate(fragmentmanager.java:1062) @ android.app.backstackrecord.run(backstackrecord.java:684) @ android.app.fragmentmanagerimpl.execpendingactions(fragmentmanager.java:1447) @ android.app.activity.performstart(activity.java:5435) @ android.app.activitythread.performlaunchactivity(activitythread.java:2278) @ android.app.activitythread.handlelaunchactivity(activitythread.java:2363) @ android.app.activitythread.access$900(activitythread.java:161) @ android.app.activitythread$h.handlemessage(activitythread.java:1265) @ android.os.handler.dispatchmessage(handler.java:102) @ android.os.looper.loop(looper.java:157) @ android.app.activitythread.main(activitythread.java:5356) @ java.lang.reflect.method.invokenative(native method) @ java.lang.reflect.method.invoke(method.java:515) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1265) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1081) @ dalvik.system.nativestart.main(native method)

does have idea? i'm pretty stumped , annoyed! thanks!

just error states, you're running out of memory. due size of image , how beingness loaded. lot of libs have been created solve these issues.

try using image loading libraries 1 of ones below. you'll able solve issue using 1 of these battle tested libs.

picasso ion universal image loader

android out-of-memory

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -