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

prbmjr

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
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

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
Cookies are required to use this site. You must accept them to continue using the site. Learn more…