File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "File read write problem" Watch "File read write problem" New topic

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

Joined: May 14, 2008
Posts: 5852

Here are the docs on writing to the SD card:
You will also need this permission in the manifest:

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

JBoss In Action
I agree. Here's the link:
subject: File read write problem
It's not a secret anymore!