我刚刚开始玩 Android 和 Delphi。我有一个很奇怪的问题,因为我在我的设备上找不到使用此代码创建的 xml 文件:
procedure TForm1.FormCreate(Sender: TObject);
var
LFileName: String;
begin
LFileName := TPath.Combine(TPath.GetDocumentsPath, 'FilesInfo.xml');
//LFile name resolves to: /data/data/com.embarcadero.XLocator/files/FilesInfo.xml
if not FileExists(LFileName) then
begin
xmlFilesInfo.Active := True;
xmlFilesInfo.DocumentElement := xmlFilesInfo.CreateNode('Files');
xmlFilesInfo.SaveToFile(LFileName);
end else
xmlFilesInfo.LoadFromFile(LFileName);
end;
该文件在某处,因为我在应用程序启动后看到它的内容,但我不知道在哪里。给定的路径不存在。我尝试使用 Windows 资源管理器、ES 文件资源管理器找到此文件,但没有成功。我没有插入 SD 卡。我的整个设备上只有两个 xml 文件,没有一个是由我的应用程序创建的。
我不知道这是否重要,但我已经在调试模式下部署了我的应用程序。
我在这里想念什么?