Hello, Romain Guy i am facing a same issue java.lang.StackOverflowError, i didn't understand what can i do ? i am newbie in Android so please help, i am working on this issues last 1 to 2 days, but i didn't get success.
please go through this link, https://groups.google.com/forum/?fromgroups=#!searchin/android-developers/Multiple$20SubActivity$20:$20facing$20StackOverflowError,$20please$20help/android-developers/nDWpyVOo3nQ/xbD5CZuEtGsJ please help me. Thank you. On Tuesday, 21 July 2009 21:13:02 UTC+5:30, Romain Guy wrote: > > You have way too many nested viewsgroups/layout. Remove some of them :) > > On Mon, Jul 20, 2009 at 10:04 PM, Dexter's > Brain<[email protected] <javascript:>> wrote: > > > > Hi, > > > > I have a TabActivity, there are 4 tabs. In each tab I have put a > > single Activity. One of the activities contains a Custom List View > > which uses a CustomAdapter which extends the BaseAdapter. > > > > I get this excpetion, when I try to open the tab containing this > > activity. It seems to be thrown at a point when probably the > > TabActivity is being re-drawn. Can anybody please suggest some > > alternatives, or solutions to avoid this problem. Here is the stack > > trace. > > > > java.lang.StackOverflowError > > at android.text.SpannableStringBuilder.drawText > > (SpannableStringBuilder.java:1042) > > at android.graphics.Canvas.drawText(Canvas.java:1273) > > at android.text.Styled.each(Styled.java:119) > > at android.text.Styled.foreach(Styled.java:249) > > at android.text.Styled.drawText(Styled.java:302) > > at android.text.Layout.drawText(Layout.java:1346) > > at android.text.Layout.draw(Layout.java:339) > > at android.widget.TextView.onDraw(TextView.java:3921) > > at android.view.View.draw(View.java:5838) > > at android.view.ViewGroup.drawChild(ViewGroup.java:1486) > > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > at android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > at android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > at android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > at android.widget.AbsListView.dispatchDraw(AbsListView.java:1319) > > at android.widget.ListView.dispatchDraw(ListView.java:2820) > > at android.view.View.draw(View.java:5944) > > at android.widget.AbsListView.draw(AbsListView.java:2121) > > at android.view.ViewGroup.drawChild(ViewGroup.java:1486) > > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > at android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > at android.view.View.draw(View.java:5841) > > at android.widget.FrameLayout.draw(FrameLayout.java:352) > > at android.view.ViewGroup.drawChild(ViewGroup.java:1486) > > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > at android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > at android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > at android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > at android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > at android.view.View.draw(View.java:5841) > > at android.widget.FrameLayout.draw(FrameLayout.java:352) > > at android.view.ViewGroup.drawChild(ViewGroup.java:1486) > > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > at android.view.ViewGroup.drawChild(ViewGroup.java:1484) > > at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1228) > > at android.view.View.draw(View.java:5841) > > at android.widget.FrameLayout.draw(FrameLayout.java:352) > > at com.android.internal.policy.impl.PhoneWindow$DecorView.draw > > (PhoneWindow.java:1847) > > at android.view.ViewRoot.draw(ViewRoot.java:1217) > > at android.view.ViewRoot.performTraversals(ViewRoot.java:1030) > > at android.view.ViewRoot.handleMessage(ViewRoot.java:1482) > > at android.os.Handler.dispatchMessage(Handler.java:99) > > at android.os.Looper.loop(Looper.java:123) > > at android.app.ActivityThread.main(ActivityThread.java:3948) > > at java.lang.reflect.Method.invokeNative(Native Method) > > at java.lang.reflect.Method.invoke(Method.java:521) > > at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run > > (ZygoteInit.java:782) > > at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:540) > > at dalvik.system.NativeStart.main(Native Method) > > > > Thanks, > > > > Dexter > > > > > > > > > -- > Romain Guy > Android framework engineer > [email protected] <javascript:> > > Note: please don't send private questions to me, as I don't have time > to provide private support. All such questions should be posted on > public forums, where I and others can see and answer them > -- 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

