Get SD card and executable path in Android and iOS with Delphi XE5 [closed]

送分小仙女□ 提交于 2019-12-01 08:23:36

Use System.IoUtils.TPath. The SD card path is obtained by using TPath.GetDocumentsPath, and the base directory of the app should be found with TPath.GetHomePath.

uses
  IOUtils;


var
  AppPath, CardPath: string;


  AppPath := TPath.GetHomePath;
  CardPath :- TPath.GetDocumentsPath;

There are several other system path related functions in TPath as well, including these (and many others - you'll have to see which apply to Android and iOS, as the docs aren't clear)

GetTempPath
GetPublicPath
GetCameraPath
GetMusicPath
GetDownloadsPath    
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!