Zied Hamdi wrote:
> 07-17 18:42:41.107: ERROR/AndroidRuntime(1054):
> java.lang.StackOverflowError
> 07-17 18:42:41.107: ERROR/AndroidRuntime(1054):     at
> android.graphics.Canvas.drawText(Canvas.java:1217)

In Android 1.5, when you get a StackOverflowError somewhere in the
middle of UI rendering code, that is probably because your UI is too
complex.

Comment out some stuff to lightly simplify your UI until your code can
run again. Then use hierarchyviewer (in your SDK tools/ directory) to
examine your UI. If from the root to the deepest leaf, you have 10+
levels, you probably need to more permanently simplify your UI.

I have some stuff written up about this issue here:

http://androidguys.com/?p=4688

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

Android App Developer Books: http://commonsware.com/books.html

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to