Thierry Legras wrote:
> I am facing rare StackOverflowError in my application during UI redraw.
> Does it mean memory is exhausted?

It means that stack space is exhausted.

> How can i fix this?

Your UI probably has too many layers in its hierarchy. Run the
hierarchyviewer program and examine the chart showing your ViewGroups
and what they all contain. Try to eliminate some layers (e.g., replace
nested LinearLayouts with a single RelativeLayout, get rid of
activities-in-tabs and switch to views-in-tabs).

> And finally how
> can i be sure the issue will be definitevly fixed??

My very rough rule of thumb:

-- If your hierarchy has <10 layers, you should have no problem
-- If your hierarchy has 10-14 layers, I get nervous
-- If your hierarchy has >=15 layers, it's gonna blow up sometimes

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_Android Programming Tutorials_ Version 2.0 Available!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to