android - java.lang.OutOfMemoryError background -


this one,

java.lang.runtimeexception: unable start activity componentinfo{ders.raydingoz.com.dersprogram/ders.raydingoz.com.dersprogram.aksamyemek}: android.view.inflateexception: binary xml file line #1: error inflating class <unknown> @ android.app.activitythread.performlaunchactivity(activitythread.java:2305) @ 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) caused by: android.view.inflateexception: binary xml file line #1: error inflating class <unknown> @ android.view.layoutinflater.createview(layoutinflater.java:626) @ com.android.internal.policy.impl.phonelayoutinflater.oncreateview(phonelayoutinflater.java:56) @ android.view.layoutinflater.oncreateview(layoutinflater.java:675) @ android.view.layoutinflater.createviewfromtag(layoutinflater.java:700) @ android.view.layoutinflater.inflate(layoutinflater.java:470) @ android.view.layoutinflater.inflate(layoutinflater.java:398) @ android.view.layoutinflater.inflate(layoutinflater.java:354) @ com.android.internal.policy.impl.phonewindow.setcontentview(phonewindow.java:359) @ android.app.activity.setcontentview(activity.java:2015) @ ders.raydingoz.com.dersprogram.aksamyemek.oncreate(aksamyemek.java:38) @ android.app.activity.performcreate(activity.java:5431) @ android.app.instrumentation.callactivityoncreate(instrumentation.java:1105) @ android.app.activitythread.performlaunchactivity(activitythread.java:2269) ... 11 more caused by: java.lang.reflect.invocationtargetexception @ java.lang.reflect.constructor.constructnative(native method) @ java.lang.reflect.constructor.newinstance(constructor.java:423) @ android.view.layoutinflater.createview(layoutinflater.java:600) ... 23 more caused by: 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:3056) @ android.content.res.typedarray.getdrawable(typedarray.java:602) @ android.view.view.<init>(view.java:3694) @ android.view.view.<init>(view.java:3624) @ android.view.viewgroup.<init>(viewgroup.java:474) @ android.widget.relativelayout.<init>(relativelayout.java:236) ... 26 more 

and 1 more;

java.lang.outofmemoryerror: failed allocate 111384 byte allocation 24040 free bytes , 23kb until oom @ java.nio.charset.charsets.toutf8bytes(native method) @ java.lang.string.getbytes(string.java:775) @ java.lang.string.getbytes(string.java:759) @ com.android.webview.chromium.webviewchromium.loaddatawithbaseurl(webviewchromium.java:664) @ android.webkit.webview.loaddatawithbaseurl(webview.java:940) @ com.google.android.gms.ads.internal.s.g.loaddatawithbaseurl(sourcefile:328) @ com.google.android.gms.ads.internal.o.m.run(sourcefile:57) @ android.os.handler.handlecallback(handler.java:739) @ android.os.handler.dispatchmessage(handler.java:95) @ android.os.looper.loop(looper.java:145) @ android.app.activitythread.main(activitythread.java:5834) @ java.lang.reflect.method.invoke(native method) @ java.lang.reflect.method.invoke(method.java:372) @ com.android.internal.os.zygoteinit$methodandargscaller.run(zygoteinit.java:1388) @ com.android.internal.os.zygoteinit.main(zygoteinit.java:1183) 

i report google plays, applications running smoothly on own phone, , others. s4 , s5 devices have reported. background images 100kb. debug did not show problem. think need reduce memory used. not it?

this excellent example of "what avoid when writing question on stackoverflow".

if you're developping app, , need allocate large memory heaps, need add in manifest, under tag application :

android:largeheap="true"


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -