Miretz
Miretz

Reputation: 154

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

Upvotes: 4

Views: 1814

Answers (2)

sdfwer
sdfwer

Reputation: 1042

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.

Upvotes: 0

MByD
MByD

Reputation: 137312

If you want to modify the content (update, remove etc.) I would suggest using SQLite DB which has a pretty nice built-in integration with the Android platform.

Upvotes: 5

Related Questions