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.
CommonsWare
2009-08-20 09:26:42
if we create the layouts using java code ,it may create the same problem or not?
arams
2009-08-21 10:52:07
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
2009-08-21 12:37:12