Carl Whalley wrote: > I've an App which performs a potentially large download in background > thread. When the orientation changes or the keyboard is opened the App > lifecycle system invokes the start/stop/pause/resume etc calls - is > there any strategy available to resume the download rather than just > set a flag so the new onCreate() knows it was interrupted and has to > start it again? Thanks.
Why resume? Your download is in a background thread, perhaps an AsyncTask. That will keep chugging along regardless of the orientation change. You will need to work out a means of having the AsyncTask communicate with the right Activity instance when the download is complete -- some people use statics, I've experimented with a local message bus, etc. -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- 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

