Mintoris Forum

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

memi205

  • Full Member
  • ***
  • Posts: 26
How to access a file on external USB storage
« on: Feb 22, 2018, 02:45 AM »
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 23, 2018, 01:38 AM 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, 06:27 PM »
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: Apr 01, 2018, 02:58 AM »
Great ‼
Thank you very much Chuck :P