tags:

views:

113

answers:

1

In my application am using a tabactivity,In tab content area am using multiple views.some of the views are created by by java code and some of them are created using XMl.this works fine in android 1.1. but when i move to android1.5 the layouts which are created using xml creates the problem.in ddms/logcat am getting stack overflow error.what i want to change to move to ANDROID1.5?

+1  A: 

If the StackOverflowError seems to be coming from deep inside Android's code for drawing your UI, your UI is too complicated.

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

CommonsWare
if we create the layouts using java code ,it may create the same problem or not?
arams
Yes, it will have the same problem. The issue is not whether you use Java or XML, it is having too deep of a stack of View objects. See the blog post linked to above for details.
CommonsWare