Download Files the Right Way on Android in Unreal Engine
I came across this blog post from Oculus regarding the proper way to request a download from the Android OS. Here is the article: https://developer.oculus.com/blog/tech-note-downloading-data-in-the-background-on-mobile/?locale=ru_RU I'm trying to download video files on a Quest 2 app built in Unreal 4.26 Oculus Integration version but it isn't as simple as just creating a java. There are a few plugins I've looked but have so far failed to fully implement including : https://github.com/gameDNAstudio/MobileUtils and https://github.com/Sovahero/PluginMobileNativeCode I'm having an issue implementing the Java DownloadHelper class since I can't seem to include the DownloadHelper package with these plugins. Has anyone out there tackled this issue the "recommended" way per the article linked? What would be even better is if Oculus could create a post for Unreal the way they did for Unity! Any assistance would be much appreciated!3.5KViews0likes4CommentsUser files with multi-user accounts
How can I read/write files from/to the device while logged in as a secondary user? I currently write logs as well as user-generated content to Unity's Application.persistentDataPath, which comes out to be under: Quest\Internal shared storage\Android\data\com.MyStudio.MyGame\files\ However, when logged in under a secondary user account, I can't seem to enable the ability to browse files on the device using a PC, so I can't gather any debug logs I've written to debug issues while logged in as a secondary user. If I log back in as the primary user, I only see logs, and user-generated content written to the above location by the primary user. No user-generated files by the secondary user appear. But when logged in as the secondary user, I can see their user-generated content, but not that of the primary user. It seems each user somehow has their own data folder, but I can only access the primary user's data via a connected PC. And if I want to manually place data files into the folder via PC, I can only do that for the primary user, not the secondary. So I either need to know if it is possible to read and write files to/from the device while logged in as a secondary user, or if there is another protected common storage area I can read/write from/to that can be accessed by any account logged into the device? Thanks!14KViews11likes17Commentshow to open video file in oculus quest?
I'm trying to open a video file in Oculus quest 2 through a specific app , but it just open the application and no error appears in command line. the command is: adb shell am start -n com.oculus.tv/com.oculus.livingroom.PanelActivity -t video/mp4 -d file:///storage/emulated/0//UI/Content/Movies/1.mp4 Is there any permission issue ? Please Help886Views0likes0CommentsUnable to upload a file via FTP on device builds
I'm trying to upload a file via FTP. Actually it works fine via Editor but when I make a build and push it to my Quest, I get "The remote name could not be resolved." error when I try to call FtpWebRequest.GetRequestStream(). var request = WebRequest.Create(address) as FtpWebRequest; request.Credentials = ... request.KeepAlive = false; request.UseBinary = false; request.Method = WebRequestMethods.Ftp.UploadFile; request.ContentLength = fileInfo.Length; Then I call request.GetRequestStream() within a try/catch and it throws the timeout exception. I tried adding <uses-permission android:name="android.permission.INTERNET" /> line to my AndroidManifest.xml thinking this might be the issue, but alas no change. Perhaps related but my attempts to get Leaderboard/Achievement data also has errors: Unable to resolve host "graph.oculus.com": No address associated with hostname Both Leaderboards and Achievements work fine via Editor - only when I push a build to my device. Does anyone have any idea?Solved1.7KViews0likes1CommentHow to read a csv file ?
Hello, I develop under Unity 2019.3.8f1 in C# for an Oculus Quest. I wish to read a csv file, parse it, and display stuff depending on the data contained inside the file. Problem is : 1. I don't find my csv file inside the oculus quest (i checked with SideQuest) 2. I don't know which path to use to access it (once it will be uploaded and visible) Can someone help me ? Thanks !3.6KViews0likes9Comments