I get a crash report on the Google Play Console on this device: Samsung Galaxy A5(2016) (a5xelte),
java.lang.OutOfMemoryError:
at dalvik.system.VMRuntime.newNonMovableArray (Native Method)
at android.graphics.BitmapFactory.nativeDecodeAsset (Native Method)
at android.graphics.BitmapFactory.decodeStream (BitmapFactory.java:700)
at android.graphics.BitmapFactory.decodeResourceStream (BitmapFactory.java:535)
at android.graphics.drawable.Drawable.createFromResourceStream (Drawable.java:1179)
at android.content.res.ResourcesImpl.loadDrawableForCookie (ResourcesImpl.java:770)
at android.content.res.ResourcesImpl.loadDrawable (ResourcesImpl.java:621)
at android.content.res.Resources.loadDrawable (Resources.java:1729)
at android.content.res.TypedArray.getDrawable (TypedArray.java:945)
at android.widget.ImageView.<init> (ImageView.java:157)
at android.widget.ImageView.<init> (ImageView.java:145)
at android.support.v7.widget.AppCompatImageView.<init> (AppCompatImageView.java:60)
at android.support.v7.widget.AppCompatImageView.<init> (AppCompatImageView.java:56)
at android.support.v7.internal.app.AppCompatViewInflater.createView (AppCompatViewInflater.java:98)
at android.support.v7.app.AppCompatDelegateImplV7.createView (AppCompatDelegateImplV7.java:926)
at android.support.v7.app.AppCompatDelegateImplV7.onCreateView (AppCompatDelegateImplV7.java:980)
at android.support.v4.view.LayoutInflaterCompatHC$FactoryWrapperHC.onCreateView (LayoutInflaterCompatHC.java:44)
at android.view.LayoutInflater$FactoryMerger.onCreateView (LayoutInflater.java:193)
at android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:776)
at android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:734)
at android.view.LayoutInflater.rInflate (LayoutInflater.java:865)
at android.view.LayoutInflater.rInflateChildren (LayoutInflater.java:828)
at android.view.LayoutInflater.rInflate (LayoutInflater.java:873)
at android.view.LayoutInflater.rInflateChildren (LayoutInflater.java:828)
at android.view.LayoutInflater.rInflate (LayoutInflater.java:873)
at android.view.LayoutInflater.rInflateChildren (LayoutInflater.java:828)
at android.view.LayoutInflater.rInflate (LayoutInflater.java:873)
at android.view.LayoutInflater.rInflateChildren (LayoutInflater.java:828)
at android.view.LayoutInflater.inflate (LayoutInflater.java:525)
at android.view.LayoutInflater.inflate (LayoutInflater.java:427)
at package.Accueil.onCreateView (Accueil.java:75)
at android.support.v4.app.Fragment.performCreateView (Fragment.java:1965)
at android.support.v4.app.FragmentManagerImpl.moveToState (FragmentManager.java:1078)
at android.support.v4.app.FragmentManagerImpl.moveToState (FragmentManager.java:1259)
at android.support.v4.app.BackStackRecord.run (BackStackRecord.java:738)
at android.support.v4.app.FragmentManagerImpl.execPendingActions (FragmentManager.java:1624)
at android.support.v4.app.FragmentController.execPendingActions (FragmentController.java:330)
at android.support.v4.app.FragmentActivity.onStart (FragmentActivity.java:547)
at android.app.Instrumentation.callActivityOnStart (Instrumentation.java:1256)
at android.app.Activity.performStart (Activity.java:6972)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:2937)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3045)
at android.app.ActivityThread.-wrap14 (ActivityThread.java)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1642)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:6776)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1496)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1386)
The crash line : at package.Accueil.onCreateView (Accueil.java:75)
Is this one:
TextView textView = (TextView) getActivity().findViewById(R.id.main_toolbar_title);
I don't understand how the app can crash on this line. I did search on Google they talk about big file to load...
Here is all of my drawables:
The view:
I think the problem is with my drawables and the density of the images, I don't rteally understand this: I did a question about:
Understanding Drawables and Images sizes
I don't know if I have all screen sizes.


OutOfMemoryErroris not possible with this line of code . Double check your production code and confirm the line number .