I had a sort of similar problem. This has been discussed here:
http://groups.google.com/group/android-developers/browse_thread/thread/75dc91441a151039/557f1cb99c8f4f8d?lnk=gst&q=java.lang.IllegalArgumentException+screen+orientation+#557f1cb99c8f4f8d On Dec 15, 4:44 pm, Al Sutton <a...@funkyandroid.com> wrote: > A code snippet which prevents an "java.lang.IllegalArgumentException: > View not attached to window manager" being thrown when .dismiss() is > called on a progress dialogue box which is on screen when the device > changes orientation. > > Thanks, > > Al. > > -- > ====== > Funky Android Limited is registered in England & Wales with the > company number 6741909. The registered head office is Kemp House, > 152-160 City Road, London, EC1V 2NX, UK. > > The views expressed in this email are those of the author and not > necessarily those of Funky Android Limited, it's associates, or it's > subsidiaries. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---