开发者

Modifying local file inside Android

开发者 https://www.devze.com 2023-02-08 16:24 出处:网络
I have an XML file stored in the res/xml that I am trying to write to. I know how to read it using XmlResourceParser, but I have not been able to find a way to write to that file locally. 开发者_开发知

I have an XML file stored in the res/xml that I am trying to write to. I know how to read it using XmlResourceParser, but I have not been able to find a way to write to that file locally.

开发者_开发知识库

Thanks Venkat


You can't modify the resources. They are compiled at apk build time.

The only thing you can do is to store the file to another location(ds-card or internal memory), modify it here and use that newly created file.

0

精彩评论

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