Android Question How can I could access a file in a USB using the ExternalStorage library using RandomAccessFile ?

prbmjr

Active Member
Licensed User
Hi everyone!

I need help to access a file using the RandomAccessFile library but the file that I have to access is into a USB stick, I can open the file normally using the ExternalStorage , this work fine if I use their functions, but How can I use the ExternalStorage library access with RandomAccessFile library ?

Thanks in advance!
 

DonManfred

Expert
Licensed User
Longtime User
but How can I use the ExternalStorage library access with RandomAccessFile library ?
AFAIK you can´t. You have to use the ExternalStorage Class to access the Files.
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Is there another way to access a file in a USB stick using a RandomAccessFile library?
Did i wrote in chinese?
As far as i know you can´t use Randomaccessfile.

Use the external Storage class to access USB-Sticks or other external Storages.
 
Upvote 0

prbmjr

Active Member
Licensed User
You could copy the file to File.DirInternal or similar and access it from there.

Hi agraham,

Thank you for your answer, but the problem is that I need to read the file in the USB stick without copy it using the RandomAccessFile ... But it´s not possible...
 
Upvote 0
Top