From 6574f65a2ee3717e65b4890f91f97e0f6da980f7 Mon Sep 17 00:00:00 2001 From: Ishan09811 <156402647+Ishan09811@users.noreply.github.com> Date: Thu, 19 Dec 2024 13:03:14 +0530 Subject: [PATCH] Update EnhancedNativeActivity.java --- .../src/main/java/com/sky/SkyEmu/EnhancedNativeActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/android_project_kotlin/app/src/main/java/com/sky/SkyEmu/EnhancedNativeActivity.java b/tools/android_project_kotlin/app/src/main/java/com/sky/SkyEmu/EnhancedNativeActivity.java index 4afd9562b..1f9844362 100644 --- a/tools/android_project_kotlin/app/src/main/java/com/sky/SkyEmu/EnhancedNativeActivity.java +++ b/tools/android_project_kotlin/app/src/main/java/com/sky/SkyEmu/EnhancedNativeActivity.java @@ -389,7 +389,7 @@ public void loadURI(Uri selectedFileUri, boolean is_rom){ if (selectedFileUri != null) { // Get the original file's path using its URI // Copy the file to the external directory - String externalDirectoryPath = getExternalFilesDir(null).absolutePath; // Use app private path for now + String externalDirectoryPath = getExternalFilesDir(null).getAbsolutePath(); // Use app private path for now File copiedFile = copyFileToExternalDirectory(selectedFileUri, externalDirectoryPath, filename); // TODO: Implement SAF if (copiedFile != null) {