Recently encountered in the project for a long time repeatedly start the end of an activity is a crash, error report: android.view.InflateException:Binary XML file Line ... Error Inflating class <unknown>
Query data The big God says it's a memory overflow (http://stackoverflow.com/questions/7536988/ android-app-out-of-memory-issues-tried-everything-and-still-at-a-loss/7576275)
Check the error log does report caused By:java.lang.OutOfMemoryError is just inside the system source code
Solution:
Release the referenced picture resource at the end of the page OnStop:
drawable d = imageview.getdrawable ();
if (d! = null) d.setcallback (NULL);
Imageview.setimagedrawable (NULL);
Imageview.setbackgrounddrawable (NULL);
This problem is often encountered before, every time it is the problem of the Android system, the original can be resolved, do not know whether it can solve the problem of the flash, but also need to observe a period of time
(occasional flashback phenomenon) repeatedly starts the end activity exception android.view.InflateException:Binary XML file line ... Error inflating class <unknown>