Would anyone please try to explain to me why
public void addView(View child) {
child.setDrawingCacheEnabled(true);
child.setWillNotCacheDrawing(false);
The error may be bacause your View too large to fit into drawing cache.
I got the explanation of my "View.getDrawingCache returns null" problem from my logs:
W/View: View too large to fit into drawing cache, needs 19324704 bytes, only 16384000 available
Android docs also says: Android devices can have as little as 16MB of memory available to a single application. That is why you can not load big bitmap.