Now the methods for writing and reading strings and jsons uses shared preferences.