aspose file tools*
The moose likes Android and the fly likes File read write problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "File read write problem" Watch "File read write problem" New topic
Author

File read write problem

Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
Hi all,

I have an audio file. I am maintaining that audio file in FileDescriptor. I want to write that file in sdcard or somewhere else.
I do not know how to copy that file using filedecriptor.

What I have done so far is ..


Where memo path is just a name of file.
Can ayonr give some idea.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5845
    
    7

Here are the docs on writing to the SD card: http://developer.android.com/guide/topics/data/data-storage.html#filesExternal
You will also need this permission in the manifest:


As far as reading the file when you have a FileDescriptor, several of the java.io classes take FileDescriptors as constructor parameters, including FileReader and FileInputStream.



JBoss In Action
 
 
subject: File read write problem