简体   繁体   English

我应该在哪里保留供Android应用使用的数据?

[英]Where should I keep data to be used by my android app?

Sorry for my poor English. 对不起,我的英语不好。 I want to store data for each level in a .txt file. 我想将每个级别的数据存储在.txt文件中。 I found tutorial about how to create it but I need a prestored file. 我找到了有关如何创建它的教程,但是我需要一个预存储的文件。 Could you give me a hand ? 你能帮我一下吗?

I found the answer ! 我找到了答案! I have to use openRawResource() and keep the file in the res/raw folder. 我必须使用openRawResource()并将文件保留在res / raw文件夹中。 Maybe it helps to another person who searches the same. 也许对另一个搜索相同的人有所帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM