I am trying to make a library/module for my project which will show all of the SharedPreferences of an application.
One way to get all the SharedPreferences is:
Map<String,?> keys = prefs.getAll(); // app sharedPreference
for(Map.Entry<String,?> entry : keys.entrySet()){
Log.d("map values",entry.getKey() + ": " + entry.getValue().toString());
}
Now I am trying to get all preferences of an application without knowing the application preferences.
Map<String,?> keys = prefs.getAll(); // app sharedPreference (without knowing prefs)
Is this possible?