Is it possible to get the \"key\" value from a SharedPreferences file if I know the \"value\" value it is paired with?
Let\'s say I\'ve gone into the SharedPreferenc
You can try:
SharedPreferences prefs = context.getSharedPreferences(context.getPackageName(), 0);
Iterator iter = prefs.getAll().entrySet().iterator();
while (iter.hasNext()) {
Map.Entry pair = (Map.Entry)iter.next();
// Check the value here
}
You can iterate over that map and look for the value you want.