getting one more error in this case I am trying to inflate grid view which is one of child activity of the tab activity and parent tab activity is also child activity of another tab activity
06-10 00:52:42.213: ERROR/AndroidRuntime(1218): FATAL EXCEPTION: main 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): java.lang.StackOverflowError 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.text.Styled.measureText(Styled.java:430) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.text.Layout.measureText(Layout.java:1655) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.text.Layout.getLineMax(Layout.java:689) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.text.Layout.draw(Layout.java:340) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.text.BoringLayout.draw(BoringLayout.java:365) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.widget.TextView.onDraw(TextView.java:4050) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.View.draw(View.java:6740) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1640) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.widget.AbsListView.dispatchDraw(AbsListView.java:1365) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.View.draw(View.java:6846) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.widget.AbsListView.draw(AbsListView.java:2257) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1640) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.View.draw(View.java:6743) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1640) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.View.draw(View.java:6743) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.widget.FrameLayout.draw(FrameLayout.java:352) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1640) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.View.draw(View.java:6743) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.widget.FrameLayout.draw(FrameLayout.java:352) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1640) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.View.draw(View.java:6743) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.widget.FrameLayout.draw(FrameLayout.java:352) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1640) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.drawChild(ViewGroup.java:1638) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewGroup.dispatchDraw(ViewGroup.java:1367) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.View.draw(View.java:6743) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.widget.FrameLayout.draw(FrameLayout.java:352) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at com.android.internal.policy.impl.PhoneWindow $DecorView.draw(PhoneWindow.java:1842) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewRoot.draw(ViewRoot.java:1407) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewRoot.performTraversals(ViewRoot.java:1163) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.view.ViewRoot.handleMessage(ViewRoot.java:1727) 06-10 00:52:42.213: ERROR/AndroidRuntime(1218): at android.os.Handler.dispatchM On Jun 9, 8:20 pm, Dianne Hackborn <[email protected]> wrote: > Don't nest activities. Directly use a tab widget to show your tabs, and > manually control the content that is shown based on the tab. > > > > > > On Thu, Jun 9, 2011 at 4:53 PM, Manish Garg <[email protected]> wrote: > > Sorry I didn't get your point. You said that it is not possible to > > have more than one level. I had used tab widget only for displaying > > nested level but facing application crash at the time of displaying > > dialog from the child activity > > > android.view.WindowManager$BadTokenException: Unable to add window -- > > token android.app.LocalActivityManager$LocalActivityRecord@43ed5c78 is > > not valid; is your activity running? > > > On Jun 9, 7:39 pm, Dianne Hackborn <[email protected]> wrote: > > > Just use the tab widget yourself. > > > > On Thu, Jun 9, 2011 at 4:25 PM, Manish Garg <[email protected]> > > wrote: > > > > Is there any other widget available to give the impression like nested > > > > tab activity. > > > > I was able to create nested tab activity but sometime it get crashed > > > > like showing dialog from the child activity of the nested tab activity > > > > > On Jun 9, 5:22 pm, Dianne Hackborn <[email protected]> wrote: > > > > > No it is not. There is only one level of nesting of activities. > > > > > > On Thu, Jun 9, 2011 at 2:02 PM, Manish Garg <[email protected]> > > > > wrote: > > > > > > Hi All, > > > > > > > I want to implement nested tab activity but getting exception in > > some > > > > > > cases like at the time of calling dialog.show from the activity of > > the > > > > > > nested activity and during drawing grid view inside nested > > activity. > > > > > > > Regards, > > > > > > Manish Garg > > > > > > > -- > > > > > > 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 > > > > > > -- > > > > > Dianne Hackborn > > > > > Android framework engineer > > > > > [email protected] > > > > > > Note: please don't send private questions to me, as I don't have time > > to > > > > > provide private support, and so won't reply to such e-mails. All > > such > > > > > questions should be posted on public forums, where I and others can > > see > > > > and > > > > > answer them.- Hide quoted text - > > > > > > - Show quoted text - > > > > > -- > > > > 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 > > > > -- > > > Dianne Hackborn > > > Android framework engineer > > > [email protected] > > > > Note: please don't send private questions to me, as I don't have time to > > > provide private support, and so won't reply to such e-mails. All such > > > questions should be posted on public forums, where I and others can see > > and > > > answer them.- Hide quoted text - > > > > - Show quoted text - > > > -- > > 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 > > -- > Dianne Hackborn > Android framework engineer > [email protected] > > Note: please don't send private questions to me, as I don't have time to > provide private support, and so won't reply to such e-mails. All such > questions should be posted on public forums, where I and others can see and > answer them.- Hide quoted text - > > - Show quoted text - -- 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

