Hi,

I have a tab bar and within one tab want to implement an activity flow
(without leaving the tab screen). I tried to get this up with an
ActivityGroup and it partly works, but certain commands like the
onCreateOptionsMenu must be dispatched to the ActivityGroup child
activity manually. The main issue is that showDialog() in my child
activity of the ActivityGroup fails with the following exception:

10-11 19:38:26.061: ERROR/AndroidRuntime(1371):
android.view.WindowManager$BadTokenException: Unable to add window --
token android.app.localactivitymanager$localactivityrec...@437b19d8 is
not valid; is your activity running?
10-11 19:38:26.061: ERROR/AndroidRuntime(1371):     at
android.view.ViewRoot.setView(ViewRoot.java:456)
10-11 19:38:26.061: ERROR/AndroidRuntime(1371):     at
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:177)
10-11 19:38:26.061: ERROR/AndroidRuntime(1371):     at
android.view.WindowManagerImpl.addView(WindowManagerImpl.java:91)
10-11 19:38:26.061: ERROR/AndroidRuntime(1371):     at
android.view.Window$LocalWindowManager.addView(Window.java:409)
10-11 19:38:26.061: ERROR/AndroidRuntime(1371):     at
android.app.Dialog.show(Dialog.java:238)
10-11 19:38:26.061: ERROR/AndroidRuntime(1371):     at
android.app.Activity.showDialog(Activity.java:2413)

Any idea on how I can get the child activities fully working? I expect
this to happen with more of the built-in activity methods and there is
not much documentation for the ActivityGroup.

Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to