title: android: Add a SharedPreference KEY dynamically
body: <p>I have a SharedPreferences file 'myprefs'. Then I use Editor to edit the <strong>value</strong> fields of the file.</p>
  
  <pre><code>        SharedPreferences.Editor editor = pref.edit();
  //some codes to edit values
      editor.commit();
  </code></pre>
  
  <p>My question is , can I <strong>add</strong> one <strong>KEY</strong> field <strong>through coding</strong>?</p>
  
  <p>Eg:- I have 2 keys name&amp; age like</p>
  
  <pre><code>&lt;Preference android:defaultValue="0" android:key="name"/&gt;
  &lt;Preference android:defaultValue="0" android:key="age"/&gt;
  </code></pre>
  
  <p>I have to add one more key 'email' <strong>through java code</strong>.</p>