[android-developers] Download large file from network to SD card

2010-11-02 Thread Ferran Garriga Ollé
I'm trying to download a large .zip file from a web server but I have a weird behaviour, the description is: - I'm executing the code in the device emulator, API level 3 (version 1.5) with an SD card of 512MB. I start the device with Wipe data user - The length of the size from

Re: [android-developers] Download large file from network to SD card

2010-11-02 Thread Kostya Vasilyev
Hi, Are you doing this from the UI thread? I think you do. If so, you need to move your networking code to a worker thread. Two easy ways to do this are: AsyncTask and IntentService (and Mark Murphy's enhanced version of the latter, WakefulIntentService). Second, if you're not targeting