0

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

3 Answers 3

7

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.

Sign up to request clarification or add additional context in comments.

Comments

3

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

Comments

1

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.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.