Skip to content Skip to sidebar Skip to footer

Android Binary Xml Exception When Changing Pictures

I'm developing an android app, it's about multilingual story. In this app I can switch from a language to another. Of course this application contains several images and texts. In

Solution 1:

The images are big in size that why you are gettinh inflate exception in inflator layout in imageView,try to make your images small and before replacing set null in imageview(it will automatically call GC).and in application tag of your manifest file,add the below line:

android:Largeheap = "true"

Solution 2:

The error message is misleading one would think right away there is something wrong in the XML layout file. Although there may be times the cause would be that, the most obvious cause for this is when you have large images placed in only one drawable folder.

Post a Comment for "Android Binary Xml Exception When Changing Pictures"