Search code examples
androidsharedpreferencesandroid-contentproviderdeprecatedandroid-syncadapter

Alternative for deprecated MODE_MULTI_PROCESS in getSharedPreferences


Is there any alternative workout for using deprecated MODE_MULTI_PROCESS with getSharedPreferences?


Solution

  • Have a look at Tray. It aims directly at solving this issue (and a couple of other issues with shared preferences as well).

    Tray actually implements a ContentProvider to store preferences. At present it uses an SQlite database, but AFAIK the design allows other storage backends.