Forum Discussion
eyemcastdev
4 years agoHonored Guest
I want to read a file inside Movies which is a public folder in an app made with Unity.
We are making an app to view VR videos with Unity (2020.3.21f1). I want to play a video in the "Movies" folder, which is a public folder on my Oculus Quest device, but when I browse to a file in tha...
bunnyxt
4 years agoHonored Guest
Hi eyemcastdev,
I'm now making a similar app for Oculus using Unity and faced the same problem. In my design, the user could select a local folder and then all media in the selected folder could be loaded to my app and then processed.
With "ExternalStorageWrite" and "ExternalStorageRead" permissions granted, the app can only access to "/storage/emulated/0/Android/data/com.example.app/files" folder. However, in most cases, the user maybe wanna select another folder.
Have you already solved this problem? Could you please provide some ideas about how to solve this problem?
Thanks!
- bunnyxt4 years agoHonored Guest
Solved.
Finally, I figure out that the 'root' of accessible storage is `/sdcard` or `/storage/emulated/0`.
With permission
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
(`android.permission.READ_EXTERNAL_STORAGE` is not required), I can access all the files under `/sdcard`.
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
- 7 months ago