Bitcoin Forum
May 25, 2024, 11:19:23 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: [Android] SharedPreferences not to store prefs  (Read 476 times)
Youresioure (OP)
Full Member
***
Offline Offline

Activity: 162
Merit: 100


Reich mir die Hand


View Profile WWW
April 17, 2017, 03:46:51 PM
 #1

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.
NoviceCrypto
Newbie
*
Offline Offline

Activity: 38
Merit: 0


View Profile WWW
April 21, 2017, 07:15:46 AM
 #2

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
Youresioure (OP)
Full Member
***
Offline Offline

Activity: 162
Merit: 100


Reich mir die Hand


View Profile WWW
April 29, 2017, 08:07:08 PM
 #3

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.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!