本文整理自网络,侵删。
function GeFileName(const AFileName: string): string;begin{$IFDEF ANDROID} Result := TPath.GetTempPath + '/' + AFileName;{$ELSE} {$IFDEF IOS} Result := TPath.GetHomePath + '/Documents/' + AFileName; {$ELSE} Result := AFileName; {$ENDIF}{$ENDIF}end;
相关阅读 >>
Delphi 构建时间 -encodedatetime … tryencodedatetime
Delphi d10.x安卓app开发中简单使用原生toast
Delphi 10分钟10行代码开发app(Delphi 应用案例)
更多相关阅读请进入《Delphi》频道 >>