I have X11-basic installed in mnt/sdcard/bas and can open and write / apped file data there.
I also have media in 2 other folders
mnt/extsd/files
mnt/usbhost1/files
dpending on whether I have media plugged in.
I tried commands
open "A", #1, "mnt/extsd/files/data.dat"
open "A", #1, "../../extsd/files/data.dat"
and variations of ../ ../../mnt/ which work OK when using e.g. PHP on a website
but so far all that happens is a long wait before the message
X11-Basic does not respond Close OK Wait ?
I can copy/paste files to the external ports and I can see folders from root forwards
The tablet is a Cortex8 with Android v 4.0.3 purchased new December 2012.
What is the correct path syntax ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, the crash has already been fixed. Wair for the next update. You should have got a file not found error instead. Try /mnt/something instead of mnt/something.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thank you but /mnt/extsd/something was one of the first obvious choices I tested and still the big timeout.
Its almost like the app does not have the privilege to write outside its boundary.
I installed X11-basic from the Google App Store like all others by simply clicking Install, have made no data changes and i would not know how to anyway.
X11-basic seems to run all the samples downloaded from here, - in its own folder !!.
I also changed the command from append to output so
Open "O", #1, "/mnt/extsd/newfile.dat"
with no change in result - still big nothing. Which is why I am wondering if there is an android permissions setting
e.g. need to chmod 664 the folder
BUT I can cut paste files there using folder maintenance app so I dont think its that.
Mystified…..
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
kollo,
thank you for the quick response. I now have version 1.20-41 installed, with same results.
Reading elsewhere, the SDHC Memory using in cameras, android, is seen as FAT file system and no R/W ReadOnly attributes so writing should be OK, Then, elsewhere I read that android.permission.WRITE_EXTERNAL_STORAGE is implied as needed to be executed by an app before opening a file.
I tried all variations including Open for Input as well as Open for Write
Open "O", #1, "../../extsd/bas/filename.dat" with the new version X11-Basic I now get the message
Error at line n: File OPEN not found: Datei nicht gefunden
Interestingly If I try
Open "O", #1, "../../extsd/filename.dat" I now get Permission denied
Frankly for me, I will continue to test-evaluate X11-Basic for its features and the lack of
read-write to external media can wait.
Question: Does anyone know any other app where the executable is NOT in the same mounted device
and is successfully writing data. I don't know. Why have mountable add-on memory at all ?????
Maybe this is a question for the android development team.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have X11-basic installed in mnt/sdcard/bas and can open and write / apped file data there.
I also have media in 2 other folders
mnt/extsd/files
mnt/usbhost1/files
dpending on whether I have media plugged in.
I tried commands
open "A", #1, "mnt/extsd/files/data.dat"
open "A", #1, "../../extsd/files/data.dat"
and variations of ../ ../../mnt/ which work OK when using e.g. PHP on a website
but so far all that happens is a long wait before the message
X11-Basic does not respond Close OK Wait ?
I can copy/paste files to the external ports and I can see folders from root forwards
The tablet is a Cortex8 with Android v 4.0.3 purchased new December 2012.
What is the correct path syntax ?
Well, the crash has already been fixed. Wair for the next update. You should have got a file not found error instead. Try /mnt/something instead of mnt/something.
Thank you but /mnt/extsd/something was one of the first obvious choices I tested and still the big timeout.
Its almost like the app does not have the privilege to write outside its boundary.
I installed X11-basic from the Google App Store like all others by simply clicking Install, have made no data changes and i would not know how to anyway.
X11-basic seems to run all the samples downloaded from here, - in its own folder !!.
I also changed the command from append to output so
Open "O", #1, "/mnt/extsd/newfile.dat"
with no change in result - still big nothing. Which is why I am wondering if there is an android permissions setting
e.g. need to chmod 664 the folder
BUT I can cut paste files there using folder maintenance app so I dont think its that.
Mystified…..
Its a known issue. See:
http://stackoverflow.com/questions/12840518/writing-file-in-external-sd-card-in-android
kollo,
thank you for the quick response. I now have version 1.20-41 installed, with same results.
Reading elsewhere, the SDHC Memory using in cameras, android, is seen as FAT file system and no R/W ReadOnly attributes so writing should be OK, Then, elsewhere I read that android.permission.WRITE_EXTERNAL_STORAGE is implied as needed to be executed by an app before opening a file.
I tried all variations including Open for Input as well as Open for Write
Open "O", #1, "../../extsd/bas/filename.dat" with the new version X11-Basic I now get the message
Error at line n: File OPEN not found: Datei nicht gefunden
Interestingly If I try
Open "O", #1, "../../extsd/filename.dat" I now get Permission denied
Frankly for me, I will continue to test-evaluate X11-Basic for its features and the lack of
read-write to external media can wait.
Question: Does anyone know any other app where the executable is NOT in the same mounted device
and is successfully writing data. I don't know. Why have mountable add-on memory at all ?????
Maybe this is a question for the android development team.