android.view.InflateException Caused by: java.lang.OutOfMemoryError -
android.view.InflateException Caused by: java.lang.OutOfMemoryError -
this issue seems occur on little number of devices crashes entire app users.
the app loads 2 images @ once, 1 original, 1 blurred re-create scrolling effect. i'm using picasso load in images reduced issues still occurs select few.
a new set of images (original & blurred) loaded every time app opened.
the images initialised in oncreateview method follows:
nonblurimageview = (imageview) layoutview.findviewbyid(r.id.orginal_image); picasso.with(getactivity()).load(getresources().getidentifier(bgnum, "drawable", getactivity().getpackagename())).into(nonblurimageview); blurredimageview = (imageview) layoutview.findviewbyid(r.id.blured_image); picasso.with(getactivity()).load(getresources().getidentifier(bgnum+"_blur", "drawable", getactivity().getpackagename())).into(blurredimageview);
the stack trace starts
android.view.inflateexception: binary xml file line #24: 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)
where #24
<imageview android:id="@+id/orginal_image" android:layout_width="match_parent" android:layout_height="match_parent" android:scaletype="centercrop" android:src="@drawable/bg_1" />
is there issue gc or something? there improve way can this?
thanks!
java android picasso
Comments
Post a Comment