开发者

Android systems files ,<resource> and <assets> in particular

开发者 https://www.devze.com 2023-02-06 05:50 出处:网络
I am trying to write a code that lets me programmatically switch a file from one of my resource开发者_运维知识库s folders to my assets folder.I have tried the usual file.renameTo method that has worke

I am trying to write a code that lets me programmatically switch a file from one of my resource开发者_运维知识库s folders to my assets folder. I have tried the usual file.renameTo method that has worked so very well for me in the past....but with android it seems to do nothing...


The assets and res folders are part of the structure of the .apk file. This isn't something that can be changed by the application on the phone. You can create a folder structure in the phone's file system, but that will need to be accessed from your app by the file access api, not as assets or resource identifiers.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号