我可以在一个资产文件夹中的文件移动到资产子文件夹? [英] Can i move a file in an asset folder to an asset sub-folder?
本文介绍了我可以在一个资产文件夹中的文件移动到资产子文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在资源文件夹的文件,当我在我的程序preSS一个按钮,我必须移动该文件中的子文件夹(运行时)。能不能做到?
i have a file in the asset folder, and when i press a button in my program i have to move that file in a sub-folder(run-time). Can it be done?
我不得不这样做:
资产/ file.txt的 - >资产/ AAA / file.txt的
i have to do this: assets/file.txt -> assets/aaa/file.txt
推荐答案
原因:一旦你有一个.apk文件是只读的,所以你不能添加,删除或修改
Reason: Once you have an .apk file it is read only, so you can't add, delete or modify in it,
备选:
虽然你可以使用SQLite数据库为目的......在这里你可以使用BLOB类型保存在层次结构文件,您可以通过查询修改...
Alternate: though you can use the sqlite DB for the purpose... where you can save file in hierarchy using blob type and you can modify it through queries...
这篇关于我可以在一个资产文件夹中的文件移动到资产子文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文