Hi Daniel, although some people here don't like TabHost, I'm using it just fine and have been able to make everything I wanted so far (or from what I can remember). Could you evaluate what is happening in more detail? From what I can understand, you have a TabHost with an Activity. This Activity has a button that show a dialog that has been pre-built in onCreate of this Activity. And what exactly is the problem? That you press the button, dialog is shown, you (for example) rotate your phone and the dialog is gone? If that's it, I suppose you post relevant parts of your code.
Best regards, Filip Havlicek 2011/3/21 Justin Anderson <[email protected]> > Change your TabHost to display views instead of activities... TabHost > doesn't handle activities very well. From what I understand it is only > partially implemented and dates back to the Android 1.1 days. > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > > On Mon, Mar 21, 2011 at 12:58 PM, Daniel Rindt < > [email protected]> wrote: > >> Hello, >> >> in my Tabhost is an activity shown which has a button. The button has >> assigned an OnClickListener. The listener calls >> showDialog(DIALOG_ASK_NAME) which is implemented in onCreateDialog(). >> But when the layout changes the Dialog disappears and never comes back >> until i press again the key. I run the activity outside the tab means >> standalone there its working. So how i can achieve the ordinary >> behavior? >> >> Thanks in advance for your help. >> Daniel >> >> >> -- >> 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 > > > -- > 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 > -- 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

