Hi, I've an Activity A that starts a Thread T which download a file through HTTP. It works fine. If I close my Activity (back button) while downloading, it is destroyed (onDestroy called) but download Thread still continue and download is completed fine.
For testing purposes I've moved my Thread T into a Service and my Activity starts the Service now. It's a little bit complex to write (for callbacks) but it works fine too. What it the best approach ? From the documentation I think Service seems better to make sure the download Thread will continue even if the Activity is destroyed ? 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 -~----------~----~----~----~------~----~------~--~---

