I have searched here without success (new to this forum, so my search-fu may be weak).
Simple application to enter numbers and have them stored to an sdcard .txt file.
But, no file appears, and attempts to read from it (in case it was hidden somewhere) return no data.
I suspect it has something to do with the naming of the file?
Are there Android permissions that have to be set?
I've tried all sorts of things without success. This should be easy, so I'm missing something basic.
I'm using Android 6.0.1 on a Galaxy 5.
I've read the article you cite and tried almost all of the suggestions.
All I want to do is open a 10 byte .txt file on the sdcard.
Is it really this hard or is the code really that obscure?
Seems like it should be very easy.
Help !
1.1.1Save File Saves text to a file. If the filename begins with a slash (/) the file is written to the sdcard (for example, writing to /myFile.txt will write the file to /sdcard/myFile.txt). If the filename does not start with a slash, it will be written in the program's private data directory where it will not be accessible to other programs on the phone.
So, /AccessPh.txt should create a file in the root of the sdcard (or so it would seem).
ok, you like to store to the external (removable) sdcard...
the file component is not able to do this, it only can store to the internal (emulated) sdcard
btw for newer Android versions the external (removable) sdcard is read only anyway