Horrorgoogle
Horrorgoogle

Reputation: 7868

How to persist data in android, without using SQLite

I want to persist data , without using SQLite databse. what can i do for this job?

Upvotes: 0

Views: 1721

Answers (3)

Sreedev
Sreedev

Reputation: 6653

The mainly used data storage methods in android are sqlit,shared preference and using assets or resources.if u dont want to use the sqlite.better try out sharedpreference.but i think u cant handle huge datas using sharedpreferences.

Upvotes: 7

Sergey Glotov
Sergey Glotov

Reputation: 20336

You can use SharedPreferences or files in device memory or external storage (SD card). References: http://developer.android.com/guide/topics/data/data-storage.html

Upvotes: 3

fyr
fyr

Reputation: 20859

Serialize datastructures to a file or write JSON or XML files to a permanent storage(e.g. private storage dir or sdcard).

However you should take into account that Serialization is slow on android. Look also here: Recommendations for persisting data on Android?

If your data will not consume too much storage you should stay with private storage because SD Cards are not necessarily available to write.

Upvotes: 1

Related Questions