Setting a default value in sharedpreferences
<p>Is there a method to set default values in shared preferences?</p>

<p>Here is my load preferences code</p>

<pre><code>        public void LoadPreferences() {
        SharedPreferences sharedPreferences = getSharedPreferences(values, MODE_PRIVATE);
        String strSavedMem1 = sharedPreferences.getString("MEM1", "");
        String strSavedMem3 = sharedPreferences.getString("MEM3", "");
</code></pre>

<p>and here is my save preferences code</p>

<pre><code>        public void SavePreferences(String key, String value) {
        SharedPreferences sharedPreferences = getSharedPreferences(values, MODE_PRIVATE);
        SharedPreferences.Editor editor = sharedPreferences.edit();
        editor.putString(key, value);
        editor.commit();
    }
</code></pre>
