I'm trying to port an Android application to a Java desktop application. The android application is using a SharedPreferences
object to store some data. Is there an equivalent in Java of this class?
Check the Preferences API out. It has the same idea and use cases as the SharedPreferences
.
Check out the java.util.Properties class.
You have to manage reading and writing the file, but it might be good enough!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With