Mintoris

Author Topic: How to access a file on external USB storage  (Read 504 times)

memi205

  • Full Member
  • ***
  • Posts: 26
How to access a file on external USB storage
« on: Feb 21, 2018, 07:45 PM »
I made an application with Mintoris Basic (on a rooted Android box) that must access a .mp3 file on the following directory: mnt/usb_storage/USB_DISK0/MusicCube/

I used RootDir On

The directory exists and the file is present. But Mintoris always said that the directory or the file not exists.

Example: PlayAudio 1, "mnt/usb_storage/USB_DISK0/MusicCube/test.mp3"

According to all my tests, it seems that Mintoris Basic is not able to access files on USB external storage.

All I see is the content of  mnt/internal_sd

What is the problem ?

Thank you !
« Last Edit: Feb 22, 2018, 06:38 PM by memi205 »

Chuck

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1899
Re: How to access a file on external USB storage
« Reply #1 on: Mar 30, 2018, 10:27 AM »
You shouldn't hardcode path's like this: "mnt/usb_storage/USB_DISK0/" because they will be different on every device. I will be working on this as part of version 8.

memi205

  • Full Member
  • ***
  • Posts: 26
Re: How to access a file on external USB storage
« Reply #2 on: Mar 31, 2018, 06:58 PM »
Great !
Thank you very much Chuck !!!