If you want help debugging your code, you should probably post the code :) But, why do you want to copy it to the sdcard in the first place? You can play ogg files directly from the resource.
On Mon, Mar 2, 2009 at 11:38 AM, [email protected] <[email protected]> wrote: > > Sorry I don't have the code handy to post as I write this, but I > figured someone might see this and know > what I'm asking: > > I'm trying to unbundle a binary file (sound1.ogg) and store it on the > sdcard. So it starts out as a raw > resource (R.raw.sound1) and should end up as a copy named /sdcard/ > mydir/sound1.ogg > > I wrote a method called something like copyResourceToFile() and did a > copy via file descriptors / streams. > But the target file just isn't right. If I do a buffered read, the > target file ends up being WAY bigger - like > 10x bigger. If I just do a byte-by-byte read for the size of the > original file, the target file is the right size > but is not the same file. > > Is there a simpler (well, correct/working) way to do this thing? > Thanks much in advance!! -Wes > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

