SharedPreferences have method getAll, but it returns no entries despite the fact some keys exist:
PreferenceManager.getDefaultSharedPreferences(this).contains("addNewAddress");
returns true
Map<String, ?> keys=PreferenceManager.getDefaultSharedPreferences(this).getAll();
returns empty map
What is wrong? How to get list of all shared preferences?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…