- Home /
Save a reachable file on the android device
Hi guys,
Currently I'm saving all of my files in "Application.persistentDataPath", which is fine if I want to reach those files only via my Android application. But I want my users to be able to directly reach the files they've created through the Android file browser (My Files).
How do I create files that can be opened both by the app that created them and by the user directly?
Thanks in advance,
Arseney
What if the phone doesn't have an SD card? And what is the path to it? just /sdcard/myfoldername ?
It says " Ever since their version of Android 3.2, they have also disallowed the writing to the external storage by regular apps." Is there no way around this?
From the same source the lines below it are the solution for that issue itself:
Inserted microSD card: mnt/extSdCard Connected external storage via Samsung USB Adapter: mnt/UsbDriveA "sdcard" storage(not an inserted SD card): getExternalStorageDirectory() as you know.
Answer by ArseneySorokin · Dec 30, 2014 at 11:58 AM
So the answer was much simpler than I had expected it to be.
In player settings, setting "Write access" to "External (SDCard)" makes the PersistantDataPath a reachable location.
Thanks for the help :)
Hey I have the exact same problem as you did, however even though I have changed the "Write access" to "External (SDCard)", and the application states that it has succesfully saved the data, I can't seem to find the folder. The path I'm given on my Nexus 7 tablet is:
/data/user/0/Com.ProjectName/files/FileName
Where did you find yours and do you maybe have a suggestion as to what I might be missing or should do ins$$anonymous$$d?
Your answer
Follow this Question
Related Questions
How to Save PNG in android...? 1 Answer
Search for files on android 2 Answers
Files on mobile devices 0 Answers
Android file path? 0 Answers
How to tell android to open a file 0 Answers