简体   繁体   中英

Where can I store very large strings?

I tried to store a very large string in an XML file but after having to force close Android Studios a few times because it froze, it turned out to be too many bytes to store. Another option might be to store it in the Java files, but I don't think that's a good idea. Where can I store this and how could I paste it without my computer freezing?

我认为您最好的选择是将它们存储在数据库中

您可以将文本保存在assets / res文件夹 中的简单.txt文件中,也可以保存在SQLite数据库中,并在需要时可以访问它。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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