Saving audio files from RMS to phone storage
Hi, i'm developping an app where the user downloads an audio file and stores it in the RMS (actually i store the binary data of the file), storing also some extra info like file content type (midi, wav, ...), song title, ...
I want to offer the user the possibility to externalize this audio data from the RMS database to save it in an audio file with the appropiate extension in the phone memory. This way the user will be able to use the sound outside the app, and use it as he likes (listen, use as ring tone, ...).
So my questions are:
is it possible to create files ?
if yes, how does it works ?
how do i know where the file is created? can i choose the location ?
if no, is there another solution ?
Thanks a lot.
Re: Saving audio files from RMS to phone storage
Hi,
You can do this if ur phone supports JSR-75.You can copy the file from the recordstore to the phone filesystem. You can also specify the location of the file
here is a tutorial on fileconnection.
[url]http://www.forum.nokia.com/info/sw.nokia.com/id/82644083-2f4b-4775-a292-c02d6bf5be57/Introduction_To_The_FileConnection_API_v1_1.zip.html[/url]
You may also search the forum where we have discussed lot on JSR-75
Wang
Re: Saving audio files from RMS to phone storage
Just to add what Wang pointed: If you need some introduction regarding FileConnection(Reading and saving files in file system), Please check this link
[url]http://discussion.forum.nokia.com/forum/showpost.php?p=201014&postcount=3[/url]
Hope this helps!
Regards
Gopal
Re: Saving audio files from RMS to phone storage
Thanks for the info i'll work on it.
I've got another question: is this API, the JSR-75 available on most of the phones ?
I would like to target as most phone models and brands as possible.
Here goes another one ^^ : if using the MMAPI and the player to record audio, where is data saved ? Could this be another possibility to save the audio files ?
Thanks again.
Re: Saving audio files from RMS to phone storage
Hi nemoff,
Here is the list of phones supporting JSR-75
[url]http://j2mepolish.org/devices/devices-pdaapi.html[/url]
>>if using the MMAPI and the player to record audio
Here also u can use fileconnection to record an audio to a specific location in the phone filesystem.
Please search the forum we have discussed it in a lot of threads.
Wang