Search for key and value inside SharedPreference?
<p>In the code below I have a method that add new key values into the file "contact". My question is if it's possible to create a method that search for a special value by some kind of loop of all keys inside the file "contact" and see if one of the values is equal to a special value? Preciate some help! Thanks!</p>

<pre><code>String filename = "contacts";
SharedPreferences someInfo = getSharedPreferences(filename, 0);

public void addSharedPref(String key, String value){

SharedPreferences.Editor editor = someInfo.edit();
editor.putString(key, value);
editor.commit();
}
</code></pre>
