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 asc转换成unicode

Delphi 获取系统服务service id

Delphi注入下载者源代码

Delphi中对进程内存进行读写

Delphi 为数字补充前缀0

Delphi twebbrowser控件禁用鼠标右键

Delphi isthisleapyear 判断闰年

Delphi tstringlist自定义排序

Delphi 根据开始和结束符取得中间字符串

Delphi服务器端如何防止ddos

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



打赏

取消

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

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

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

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

评论

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