public static int getSortBy() { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(NoteApplication.getContext()); return sharedPreferences.getInt(BirdMessage.SORT_BY, BirdMessage.SORT_BY_DEFAULT); }
public static void setSortBy(int value) { SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(NoteApplication.getContext()); sharedPreferences.edit().putInt(BirdMessage.SORT_BY, value).commit(); }