[android-developers] Re: Is it possible for TabActivity to have child TabActivity
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 hack...@android.com 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 mannishga...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible for TabActivity to have child TabActivity
Just use the tab widget yourself. On Thu, Jun 9, 2011 at 4:25 PM, Manish Garg mannishga...@gmail.com 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 hack...@android.com 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 mannishga...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com 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. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible for TabActivity to have child TabActivity
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 hack...@android.com wrote: Just use the tab widget yourself. On Thu, Jun 9, 2011 at 4:25 PM, Manish Garg mannishga...@gmail.com 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 hack...@android.com 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 mannishga...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
Re: [android-developers] Re: Is it possible for TabActivity to have child TabActivity
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 mannishga...@gmail.com 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 hack...@android.com wrote: Just use the tab widget yourself. On Thu, Jun 9, 2011 at 4:25 PM, Manish Garg mannishga...@gmail.com 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 hack...@android.com 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 mannishga...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com 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. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible for TabActivity to have child TabActivity
ohh sorry, my mean to say was that one of the child tab is itself a tab activity On Jun 9, 8:20 pm, Dianne Hackborn hack...@android.com 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 mannishga...@gmail.com 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 hack...@android.com wrote: Just use the tab widget yourself. On Thu, Jun 9, 2011 at 4:25 PM, Manish Garg mannishga...@gmail.com 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 hack...@android.com 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 mannishga...@gmail.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- Dianne Hackborn Android framework engineer hack...@android.com 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: Is it possible for TabActivity to have child TabActivity
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: