IMPORTANT:

All Oculus Quest developers MUST PASS the concept review prior to gaining publishing access to the Quest Store and additional resources. Submit a concept document for review as early in your Quest application development cycle as possible: https://developer.oculus.com/quest-pitch/

For additional information and context, please see "Submitting Your App to the Oculus Quest Store".
Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

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.

Answers

  • chris.tmssnchris.tmssn Posts: 2
    NerveGear
    i have the same problem :( perhaps no permission to write on file system?
  • SuperDogoCocoSuperDogoCoco Posts: 2
    NerveGear
    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/
  • chris.tmssnchris.tmssn Posts: 2
    NerveGear
    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 :(
  • sealfosssealfoss Posts: 3
    NerveGear
    So, I asked John Carmack on Twitter, here's his reply:

    "You need the WRITE_EXTERNAL_STORAGE permission in your manifest, then you can write to /sdcard, which is what is visible when the HMD is plugged into a computer. Implementing some kind of cloud transfer would be more convenient for users."



  • el_jergasel_jergas Posts: 19
    NerveGear
    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.

Sign In or Register to comment.