As the title suggests, I want to be able to upload a text file to my Android device, eg ‘words.txt’ and then read it at runtime. I cannot package this file with the rest of the game as it may be subject to change from external programs. However every attempt I make results in either no directory/file exists or a path that is in the unreal project directory
Unreal 5.3, I am building with SDK29 for both target and minimum and using the platform launcher to port the build to an Android v14
I have ticked the box for UseExternalFilesDir for UnrealGameFiles (though this feels unrelated)
I have added the following extra permissions
- android.permission.WRITE_EXTERNAL_STORAGE
- android.permission.READ_EXTERNAL_STORAGE
My attempts are currently using C++ function calls into IFileManager::IterateDirectory and FileExists. It seems that no matter what path I use, these functions fail, or the path is truncated to read from the project directory instead.
Can this be done? If so what is the best practice?