Forum Discussion
DigitalBug
2 years agoProtege
Path to 'Pictures' folder on the quest
I have an UE5 standalone application for Quest2. I need to open pictures that are stored in the "Pictures" folder. Can someone show me an example of how I can get the correct folder path.
I found the answer
<gameActivityClassAdditions> <insert> public String AndroidThunkJava_GetAndroidDir_Pictures() { File f = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); return f.getPath(); } </insert> </gameActivityClassAdditions>
1 Reply
Replies have been turned off for this discussion
- DigitalBugProtege
I found the answer
<gameActivityClassAdditions> <insert> public String AndroidThunkJava_GetAndroidDir_Pictures() { File f = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_PICTURES); return f.getPath(); } </insert> </gameActivityClassAdditions>
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
- 1 year ago
- 9 months ago
- 10 months ago
- 2 years ago