chuck3e Active Member Licensed User Longtime User Jun 21, 2014 #1 I have a Trio-97C. I am unable to access the same file from three different aps. I believe this is because the file exists in internal storage. Even though the directory name is /mnt/sdcard it is really internal storage. The real sd card appears to have a directory name of /mnt/extsd but my aps are unable to create files on it, possibly because that's the way this tablet was designed? The aps can read the file but not write. When I execute Code: Copy Writer.Initialize(File.OpenOutput("/mnt/extsd/aaa.elsiequiz/files/", MyFile, False)) I get an error of: "java.io.FileNotFoundException: /mnt/extsd/aaa.elsiequiz/files/ELSIECounts062114English: open failed: EACCES (Permission denied)". I don't get this error when I create this file on /mnt/sdcard. 1. Are all Android tablets unable to create files on actual cd cards? 2. Is there a way to write to the same file in the above mentioned internal storage from different apps? 3. Is there a way to get permission to write to the real CD card?
I have a Trio-97C. I am unable to access the same file from three different aps. I believe this is because the file exists in internal storage. Even though the directory name is /mnt/sdcard it is really internal storage. The real sd card appears to have a directory name of /mnt/extsd but my aps are unable to create files on it, possibly because that's the way this tablet was designed? The aps can read the file but not write. When I execute Code: Copy Writer.Initialize(File.OpenOutput("/mnt/extsd/aaa.elsiequiz/files/", MyFile, False)) I get an error of: "java.io.FileNotFoundException: /mnt/extsd/aaa.elsiequiz/files/ELSIECounts062114English: open failed: EACCES (Permission denied)". I don't get this error when I create this file on /mnt/sdcard. 1. Are all Android tablets unable to create files on actual cd cards? 2. Is there a way to write to the same file in the above mentioned internal storage from different apps? 3. Is there a way to get permission to write to the real CD card?
NJDude Expert Licensed User Longtime User Jun 21, 2014 #2 You should not hard code the path, all devices are different, if you need a file to be shared, save it on the root directory, like this: Code: Copy Writer.Initialize(File.OpenOutput(File.DirRootExternal, MyFile, False)) Upvote 0
You should not hard code the path, all devices are different, if you need a file to be shared, save it on the root directory, like this: Code: Copy Writer.Initialize(File.OpenOutput(File.DirRootExternal, MyFile, False))
chuck3e Active Member Licensed User Longtime User Jun 22, 2014 #3 NJDude said: You should not hard code the path, all devices are different, if you need a file to be shared, save it on the root directory, like this: Code: Copy Writer.Initialize(File.OpenOutput(File.DirRootExternal, MyFile, False)) Click to expand... Thank you very much, this does work like you said it would, however, it proves there are no simple solutions (for a novice anyway) because now, since my files names are date stamped I have to figure out how to find my files through code since they're mixed in amongst all the other junk in that directory. Upvote 0
NJDude said: You should not hard code the path, all devices are different, if you need a file to be shared, save it on the root directory, like this: Code: Copy Writer.Initialize(File.OpenOutput(File.DirRootExternal, MyFile, False)) Click to expand... Thank you very much, this does work like you said it would, however, it proves there are no simple solutions (for a novice anyway) because now, since my files names are date stamped I have to figure out how to find my files through code since they're mixed in amongst all the other junk in that directory.
NJDude Expert Licensed User Longtime User Jun 22, 2014 #4 You can create sub-directories on DirRootExternal to organize your files better. Upvote 0
chuck3e Active Member Licensed User Longtime User Jun 22, 2014 #5 NJDude said: You can create sub-directories on DirRootExternal to organize your files better. Click to expand... Another excellent suggestion. I did that and it worked. Thanks again! Upvote 0
NJDude said: You can create sub-directories on DirRootExternal to organize your files better. Click to expand... Another excellent suggestion. I did that and it worked. Thanks again!