Hi I'm developing simple player that connects to server and gets playlist and audio files. I'm wondering how to implement download audio files correctly.
I've tried to use java.nio (FileChannel.transferFrom - http://stackoverflow.com/questions/921262/how-to-download-and-save-a-file-from-internet-using-java) but it downloads only part of file on Android (e.g. 35KB instead of 1.1MB). I've tried to use android.app.DownloadManager. But I cant understead why it downloads file (generates COMPLETED message that I handle in BroadcastReceiver) and then FAILED message (and deletes file from storage). I'm new to Android development, so I'm sorry if this question is noobish. Thanks a lot. -- 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

