Delphi处理Android的路径信息

路径操作就使用TPath的方法都很方便.

uses

System.IoUtils

TPath.GetTempPath//临时目录

TPath.GetCameraPath//照相机目录(照片/录像)

TPath.GetMusicPath//音乐目录

TPath.GetDownloadsPath//下载目录

……

如果使用TPath类的静态方法那么代码就是跨平台的,在Windows,Mac,iOS,Android上都能用.

如果仅仅对Android的操作也可以使用Androidapi.IOUtils单元的那些GetXX的函数,也很简单,都没有参数,并且返回值都是字符串.