简体   繁体   中英

Best way to store text data in an android app?

I've made an Android application which contains most used German words and sentences. The application contains a CSV file which stores all the data.

Currently it is working as expected but I want to ask if there is a better way to store such data directly in the app?

I'm also thinking about the ability to update the data via internet like adding new words and sentences.

Thanks! Miretz

如果你想修改内容(更新,删除等),我建议使用SQLite DB ,它与Android平台有很好的内置集成。

There are 2 types SQLDatabaseLite and SharedPreference. Major difference between both is that one is organized and the other not so.

If you need a quick use of a storage facility within your app for example changing text sizes between activity SharedPrefference works best for you.

If you have a complex database system where you need more than one data to be saved for a particular event SQLDatabaseLite is for you example of this is spreadsheet of data for customers; Name, Phone Number, etc.

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