Thanks
On 6 Mrz., 09:30, Stoyan Damov <[email protected]> wrote:
> Search this forum for "Dialog Survival Over Configuration Change"
>
> On Fri, Mar 6, 2009 at 10:23 AM, Manfred <[email protected]> wrote:
>
> > Hi!
>
> > I have a Progress Dialog in an extra Thread running. Normally the user
> > will have the keyboard open, because something is to insert! So when
> > the Progress Dialog appears and the user close the keyboard, the
> > dialog dissappears and the application crashes. In the debugger i saw
> > the exception "View not attached to window manager". May because the
> > Dialog is not longer shown but the application want to remove it after
> > the calculation?
>
> > Here is the code where i start the dialog and the thread:
> > ------------------------------------------------------------------------------------------
> > alert=0;
> > myProgressDialog = ProgressDialog.show(this,
> > "Please wait...", "Calculating..", true);
> > new Thread()
> > {
> > public void run()
> > {
> > try
> > {
> > //Doing some stuff....
> > }
> > catch (Exception e)
> > {
> > alert=2;
> > alertText = e.getMessage();
> > }
>
> > myProgressDialog.dismiss();
> > mHandler.post(mCompleteRunnable);
> > }
> > }.start();
> > ------------------------------------------------------------------------------------------
>
> > Does somebody know how to solve this?
>
> > 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
-~----------~----~----~----~------~----~------~--~---