Android Annotation SharedPreferences Scope
01 Apr 2016Fixing android annotation preference not shared across all activity. Somehow I miss to read about Scope section
If you write / put value in sharedpreference at Activity A and try to read / get it at Activity B and the value is null, maybe you forget to define scope in AA Preference.
Read it here : Android Annotation SharedPreferences Scope
TL;DR : To make it work like normal SharedPreferences, you should write :
@SharedPref(value=SharedPref.Scope.UNIQUE)
public interface MyPrefs {
...