本文整理自网络,侵删。
Delphi / C++ Builder 发布程序到 Android 时,如果我们要发布一个自己的文件,则需要设置的目录是:asserts\internal (内置存贮)或 asserts (外置存贮),然后运行时使用下面的方法获取路径:
Delphi:
TPath.Combine(TPath.GetDocumentsPath, 'filename') { Internal }TPath.Combine(TPath.GetSharedDocumentsPath, 'filename') { External }
C++:
System::Ioutils::TPath::Combine(System::Ioutils::TPath::GetDocumentsPath(), L"filename") // InternalSystem::Ioutils::TPath::Combine(System::Ioutils::TPath::GetSharedDocumentsPath(), L"filename") // External这部分内容来自帮助,大家可以看看。
相关阅读 >>
Delphi qr /条形码扫描仪应用示例代码(使用zxing,tframestand)
更多相关阅读请进入《Delphi》频道 >>