Forum Discussion
DKeisan
7 years agoExplorer
Paths inside the Oculus Go storage? - Creating a txt/CSV file using C# Writeline in Unity VR
Hello,
In my VR project, I'm trying to create a txt or CSV file to record the move of the player.
However, I don't know which path is appropriate for creating a file inside my Oculus Go.
I'm using the C# StreamWriter and WriteLine, but as for the path neither Application.dataPath nor Application.persistentDataPath seem working.
I can't even see where in the Go storage my application is installed. The explorer shows me a folder with app name under "Android" folder, but only cache files there.
Could you help me? Let me know if some of you are having the same problem.
Situations: Win 10, Unity 2018.1.0f2, Visual Studio 2017, Android Studio 3.1.3 w/ appropriate SDK settings, jdk1.8.0_171, Oculus Go in the developer mode
In my VR project, I'm trying to create a txt or CSV file to record the move of the player.
However, I don't know which path is appropriate for creating a file inside my Oculus Go.
I'm using the C# StreamWriter and WriteLine, but as for the path neither Application.dataPath nor Application.persistentDataPath seem working.
I can't even see where in the Go storage my application is installed. The explorer shows me a folder with app name under "Android" folder, but only cache files there.
Could you help me? Let me know if some of you are having the same problem.
Situations: Win 10, Unity 2018.1.0f2, Visual Studio 2017, Android Studio 3.1.3 w/ appropriate SDK settings, jdk1.8.0_171, Oculus Go in the developer mode
2 Replies
Replies have been turned off for this discussion
- DKeisanExplorerThank you for your reply.
I checked Temp/StagingArea/AndroidManifest.xml and found the both of
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
in the manifest. I chose "External(SDcard)" for the Write Permission at the Player Settings in my Unity project, so I believe the AndroidManifest is correctly created as above. - DKeisanExplorerSorry, I got confused with the other manifest, another version of the same project for Android smartphones.
As for the Oculus Go version apk, there was no <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> in the manifest.
Though, I found "WRITE_EXTERNAL_STORAGE" permitted there, due to my settings.
How can I permit "READ_EXTERNAL_STORAGE" in the manifest?
Unlike the one for Android smartphones, the manifest for Oculus Go seems like being generated with LibOVRPlatform/codegen/main.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 8 months ago
- 3 months ago
- 11 months ago