Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
grismor's avatar
grismor
Honored Guest
7 years ago

Is it possible to write a text file from the oculus quest and save it in the internal storage?

I am creating a program for a research study and we need to record the answers that participants give. Since it is not connected to the computer we cannot use the Unity console nor create a text file on the computer. Therefore we need to create a file on the Quest, add to it when needed, and save it so that we can retrieve it when the quest is plugged into a computer. I have tried using Application.persistentDataPath and Application.dataPath but the file is no where to be found in the internal storage of the Quest.

6 Replies

  • i have the same problem :( perhaps no permission to write on file system?


  • I'm not sure if this is the problem but, have you installed an oculus go (compatible with quest) ADB driver? When the Quest is plugged in it needs to communicate with the computer and that's what the ADB driver is for. Here's the link if you need it. https://developer.oculus.com/downloads/package/oculus-go-adb-drivers/


    For me I don't think so... I have access through the file explorer and can install apk via adb. So that's working.
    I create a File via script (File.WriteAllText(...)) and also I'm able load the data from it in the Application... so the file should be there, BUT if I connect the Quest to the PC, there isn't the saved file in the 'internalSharedStorage'/Android/data/'projectName'/files folder :(
  • Wait, but if you do this the user will be asked for read permission! That's awful because they will (rightly) think that we can mess with their data. Is there no sandboxed folder for each app, where you don't even need for permission? I am thinking iOS for example.

  • Yes, I finally discovered how to do it, by creating a post in The browser app and then editing that post, such as in a Facebook post, fhereby allowing you to then edit it inside of Quest!