Hey all- I've run into an interesting little issue.. My loader Activity fetches data from a web API, starting an http request and waiting for the result.. Now what if the user flips their phone mid-http request? The Activity is destroyed and restarted, thus the http request restarts as well. The fact that my Activity is being destroyed on orientation change is all good by me, I understand the way Android works, I'm just looking for a solution to avoid restarting the http request on every orientation change..
I'm thinking the solution would be Services... I could run a Service in the background to do the http request and when it finishes, call back to my Activity and let it handle the data and finish up. The one thing I'm a bit weirded out about is what if the user closes my app before the Service's http request finishes? What will it do with the data if the Activity that needs it is no longer running? Thoughts, feedback, ideas, etc would be great! Thanks, Nick -- 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

