Mintoris
Jul 19, 2018, 02:48 AM *
Welcome, Guest.

login

register

Did you miss your activation email?


Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: How to access a file on external USB storage  (Read 404 times)
memi205
Full Member
***
Posts: 26


« 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 » Logged
Chuck
Global Moderator
Hero Member
*****
Posts: 1898



« 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.
Logged
memi205
Full Member
***
Posts: 26


« Reply #2 on: Mar 31, 2018, 06:58 PM »

Great !
Thank you very much Chuck !!!
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines
Page created in 0.025 seconds with 17 queries.