henrikvrtraveler Posted July 10, 2019 Share Posted July 10, 2019 Hi! I am attempting to access the sdcard2 folder from inside my application, I've tried many different paths however I am not sure if my app is allowed to access this folder / sd card. Any tips on what I can do to access the sdcard2? :) I've tried the following paths: /storage/ext_sd/ /sdcard2 Link to comment Share on other sites More sharing options...
Corvus Posted July 10, 2019 Share Posted July 10, 2019 Have you added the permissions to the android manifest? <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> Link to comment Share on other sites More sharing options...
henrikvrtraveler Posted July 11, 2019 Author Share Posted July 11, 2019 Indeed! I've also ran the commands: adb shell pm grant APP android.permission.READ_EXTERNAL_STORAGEadb shell pm grant APP android.permission.WRITE_EXTERNAL_STORAGE To no avail. I fear the paths might not be working, or the app doesn't have permissions. We're running Kiosk, do you think that may be altering permissions or something? Link to comment Share on other sites More sharing options...
henrikvrtraveler Posted July 16, 2019 Author Share Posted July 16, 2019 Link to comment Share on other sites More sharing options...
henrikvrtraveler Posted July 31, 2019 Author Share Posted July 31, 2019 @Tony PH Lin Any further ideas? 🙂 Link to comment Share on other sites More sharing options...
Corvus Posted August 1, 2019 Share Posted August 1, 2019 What game engine are you using? Can you share a code snippet that includes the full paths you're testing? Link to comment Share on other sites More sharing options...
henrikvrtraveler Posted August 5, 2019 Author Share Posted August 5, 2019 @Cory_HTC Unreal Engine 4.21 Code snippet: FString filePath = FString(FileLocation); IPlatformFile& PlatformFile = FPlatformFileManager::Get().GetPlatformFile(); if (PlatformFile.FileExists(*filePath)) { But it will return false on the sd card. Works for files on the inbuilt storage, we are using kiosk mode with that SD card, would that interfere? The paths are like before: /storage/ext_sd/ /sdcard2 Or more specifically paths like: /sdcard2/images/1.png /storage/ext_sd/images/1.png Using ADB the paths exists and files are found from my windows machine. Link to comment Share on other sites More sharing options...
henrikvrtraveler Posted August 15, 2019 Author Share Posted August 15, 2019 Any news? 🙂 @Cory_HTC @Tony PH Lin @Cotta Link to comment Share on other sites More sharing options...
VRC Posted August 16, 2019 Share Posted August 16, 2019 @henrikvrtraveler we managed that with unity : link Hope this can help. Link to comment Share on other sites More sharing options...
henrikvrtraveler Posted August 21, 2019 Author Share Posted August 21, 2019 @VRC Thank you, I'll have a look this week if that will help us out. Perhaps we can create a similar system for Unreal 🙂 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now