Delphi Android 平台加载文件


本文整理自网络,侵删。

 
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") // Internal
System::Ioutils::TPath::Combine(System::Ioutils::TPath::GetSharedDocumentsPath(), L"filename") // External
这部分内容来自帮助,大家可以看看。

相关阅读 >>

Delphi著名皮肤控件库大全评测

Delphi winapi: openprocess、getexitcodeprocess、terminateprocess (qq)

Delphi不占cpu的延时函数

在一个exe文件中查找指定内容,找到则返回起始位置,否则返回0

Delphi 得到执行程序的当前所在完整路径

Delphi 计算加班时间工时的函数

Delphi文件捆绑器

Delphi 以低用户权限启动一个进程.比如vista或者win7中的ie

Delphi 去掉treeview水平滚动条

Delphi 调用golang dll

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...