Get SD card and executable path on Android and iOS using Delphi XE5

  • How to get the path to the SD card and how to get the executable path in Android and iOS using Delphi XE5?
+3
source share
1 answer

Use System.IoUtils.TPath. The path to the SD card is obtained using TPath.GetDocumentsPath, and the base directory of the application must be found using TPath.GetHomePath.

uses
  IOUtils;


var
  AppPath, CardPath: string;


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

There TPathare several more functions related to the system path, including these (and many others) - you will need to see which applications are applied to Android and iOS, since the documents are not clear)

GetTempPath
GetPublicPath
GetCameraPath
GetMusicPath
GetDownloadsPath    
+7
source

Source: https://habr.com/ru/post/1502765/


All Articles