There is a way to wait for another thread to finish: http://developer.android.com/intl/fr/reference/java/lang/Thread.html#join%28%29
If that thread took a while, however, the system might decide your app isn't responding. Passing the recreated activity a reference to the thread using this method might be worth looking into instead: http://developer.android.com/intl/fr/reference/android/app/Activity.html#onRetainNonConfigurationInstance%28%29 On Oct 25, 12:41 am, "[email protected]" <[email protected]> wrote: > When I flip the keyboard, the layout changes from portrait to > landscape, activity is recreated but any background thread keeps > running. > > How can I prevent orientation change/activity from being recreated > until my background thread finishes. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

