Copy file from from Project Package to SD card

All your problems with Audio, Video and Images.

Copy file from from Project Package to SD card

Postby wh33t » Sat Jul 11, 2009 5:10 pm

Hi All,

I am new to Android coding so sorry if i am being very n00by. I have searched around for hours on this and many other forums to try and find out the below:

I have made a simple soundboard app but am trying to copy the .mp3 file from the project raw folder into a specified directory on the sd card. I have the onlongclick listener setup but just can't get it to copy the files across.

Has anyone got a code snippet on how to do this?

Any help is greatly appreciated!!
wh33t
Freshman
Freshman
 
Posts: 3
Joined: Sat Jul 11, 2009 2:21 pm

Top

Postby wh33t » Sun Jul 12, 2009 11:14 am

No need to worry now, finally figured it out. Ignored Android and just used standard Java InputStream i/o
wh33t
Freshman
Freshman
 
Posts: 3
Joined: Sat Jul 11, 2009 2:21 pm

Postby aspidoff » Sun Aug 02, 2009 11:58 pm

could you share the code please? i've been looking to do the exact same thing for a few days now. cant figure it out :(
aspidoff
Freshman
Freshman
 
Posts: 3
Joined: Sun Aug 02, 2009 11:53 pm

Postby NetApex » Thu Dec 31, 2009 10:25 pm

aspidoff wrote:could you share the code please? i've been looking to do the exact same thing for a few days now. cant figure it out :(


Yeah I am looking at doing the same thing now. Any help would be a bonus. I will report back if I get it figured out too.
NetApex
Freshman
Freshman
 
Posts: 7
Joined: Mon Dec 07, 2009 1:07 am
Location: Sylvania, Ohio

Postby marcjc » Tue Jan 05, 2010 3:18 pm

Has anyone figured out the code on this one? I have been looking for this too.

Thanks.
marcjc
Junior Developer
Junior Developer
 
Posts: 16
Joined: Tue Jan 05, 2010 3:16 pm

Postby NetApex » Mon Jan 11, 2010 7:28 pm

This is the code that will get you on the right path.

http://androidforums.com/android-develo ... -list.html

Took some figuring out for me, and a LOT of help from Mark Murphy ( http://commonsware.com/index.html ). So I finally was able to get my soundboard working.


Image
NetApex
Freshman
Freshman
 
Posts: 7
Joined: Mon Dec 07, 2009 1:07 am
Location: Sylvania, Ohio

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: Yahoo [Bot] and 15 guests