Josh wrote:
> thanks Mark but how do i convert the int "r.raw.mysound" into a file?

You don't. For the example I showed, you need an InputStream. Instead of
getting one from a file, use the Resources object (getResources() in
your activity or other Context) to get an InputStream on the raw resource.

> How do i set the sdcard as the destination?

Use a stream. The Environment class has a method that tells you the path
to the SD card.

> Can i rename the file that I copy as I copy it?

Sure.

> I appreciate all the help you can give me. I keep re reading the sdk
> but Im just not making since of this.

That's because this has very little to do with Android and everything to
do with basic Java stream I/O.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android App Developer Training: http://commonsware.com/training.html

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to