Implement Platform::DefaultDdir for android

The default directory is acquired via getExternalFilesDir. Typical value: /storage/emulated/0/Android/data/uk.co.powdertoy.tpt/files, which seems to be user-accessible both on old and new Android. Probably. Hopefully. We'll see.
This commit is contained in:
Tamás Bálint Misius
2024-08-30 21:23:17 +02:00
parent 5180df9180
commit f58d4fbd63
5 changed files with 85 additions and 63 deletions

View File

@@ -10,7 +10,7 @@ import java.util.Base64;
public class PowderActivity extends SDLActivity
{
public static String getCertificateBundle()
public String getCertificateBundle()
{
String allPems = "";
try {
@@ -39,4 +39,9 @@ public class PowderActivity extends SDLActivity
}
return allPems;
}
public String getDefaultDdir()
{
return getExternalFilesDir(null).getAbsolutePath();
}
}