Author

Topic: [Android] SharedPreferences not to store prefs (Read 492 times)

full member
Activity: 162
Merit: 100
Reich mir die Hand
If you are not storing any sensitive data then you can use shared preference
besides shared preference will only be accessible via the application, other application can not use those store data
to use this data you might want to implement some api integration or services

Thanks for help! At the moment, it is just one application and not very sensitive data. However, some authors explain how to share preferences between applications using SharedPreferences. Anyway, since that we had a code review and the idea passed.
newbie
Activity: 38
Merit: 0
If you are not storing any sensitive data then you can use shared preference
besides shared preference will only be accessible via the application, other application can not use those store data
to use this data you might want to implement some api integration or services
full member
Activity: 162
Merit: 100
Reich mir die Hand
Background:

My object-class has properties: String, (Joda) DateTime and a simple custom type.

Other applications must be able to access the stored data easily.

What method do you advise to store them?



I decided to use SharedPreferences. I converted my data into String and stored them in SharedPreferences. When reading, I cast from String.

But I know, it's usually used to store preferences.

Is it an acceptable practice to store other simple data too?

It's working at this size of the project... This is a small project and will remain that.
Jump to: