Debug your transfer() method and make sure, that all the path are correct (e.g. no duplicated slashes) If i'm not mistaken Environment.getExternalStorageDirectory().getAbsolutePath() returns the slash terminated string.
Make sure that the dir is created and your context was got correctly. Make sure, you've declared appropriate permission in your manifest file. out.write(buf, 0, len); - your offset (the second arg) is constant (you're just rewriting 1024 bytes every iteration) You don't need to pass the context to copyfile() method cause u've got as a global variable context; You mustn't get the context AGAIN in copyfile() method Read Java and Android references, do your homework well and just then post your question here if still having any troubles! btw. use Log for logging not toast -- 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

