I want to know how to save single object(for example user's token) to file system. Is shared preferences best practices? Or it be better to use table with single row or something else?
4
- shared preferences is recommanded.Kaushik Burkule– Kaushik Burkule2019-10-16 12:05:11 +00:00Commented Oct 16, 2019 at 12:05
- How to securely store access token and secret in Android?Ricardo A.– Ricardo A.2019-10-16 12:29:49 +00:00Commented Oct 16, 2019 at 12:29
- if you like any answer you can surely upvote it.. but please don't downvote an answer unless it's totally wrong. Thank you :) Cheers!Kishita Variya– Kishita Variya2019-10-16 12:53:00 +00:00Commented Oct 16, 2019 at 12:53
- I didn't downvote any answer. They are all good and more or less the same. Thanks for helpгригорий юрков– григорий юрков2019-10-16 14:01:22 +00:00Commented Oct 16, 2019 at 14:01
Add a comment |
2 Answers
Shared prefrences will be the best choice, https://github.com/Pixplicity/EasyPrefs here is a library to make it easier for you aswell