title: Restart application on preference changed
body: <p>I need to restart the application from <code>PreferenceActivity</code> on preference changed. I tried:</p>
  
  <pre><code>@Override
  public void onSharedPreferenceChanged(SharedPreferences pref, String key) {
      System.exit(2);
  }
  </code></pre>
  
  <p>but after restart settings are not saved. Any ideas of how to restart the app with preferences are saved?<br>
  Thanks in advance</p>