Einzelnen Beitrag anzeigen

QuickAndDirty

Registriert seit: 13. Jan 2004
Ort: Hamm(Westf)
2.063 Beiträge
 
Delphi 12 Athens
 
#11

AW: Wo speichert ihr programmspezifische Daten unter Android?

  Alt 26. Aug 2025, 16:21
Delphi-Quellcode:
{$IF defined(MSWINDOWS) }
  ExeFileNameWithoutExtension := TPath.GetFileNameWithoutExtension(paramstr(0));
  AppDataPath := TPath.Combine(TPath.getHomePath, ExeFileNameWithoutExtension);
  AppDataPath := TPath.GetFullPath(AppDataPath);
  if not TDirectory.Exists(AppDataPath) then
    TDirectory.CreateDirectory(AppDataPath);
{$ENDIF defined(MSWINDOWS)}
{$IF defined(ANDROID)}
  AppDataPath := TPath.getHomePath;
{$ENDIF defined(ANDROID)}
{$IF defined(IOS)}
  AppDataPath := TPath.GetDocumentsPath;
{$ENDIF defined(IOS)}
Andreas
Nobody goes there anymore. It's too crowded!

Geändert von QuickAndDirty (26. Aug 2025 um 16:24 Uhr)
  Mit Zitat antworten Zitat