EditTextPreference cannot be set
<p>i have this code to set an EditTextPreference when i tap on a menu item:</p>

<pre><code> case R.id.prochain_vidange:

         settings = PreferenceManager.getDefaultSharedPreferences(getBaseContext());
        km = settings.getString("km", "");
        Log.d("TAG",km);
       int x= Integer.valueOf(km);
       int y= x+8000;
       String z=String.valueOf(y);

        SharedPreferences.Editor editor1 = settings.edit();
        Log.d("proch1",z);
        editor1.putString("prochain_vidange",z);
        Log.d("proch2",z);
        editor1.commit();


        return true;
</code></pre>

<p>I really don't know why when i tap on the menu item nothing happens, the calculated value (y  converted to string z) cannot be set to "km" EditTextPreference. (settings and km values i used them before in another menu item.)
What's going on with this code ?
Thank you very much.
EDIT:</p>

<pre><code>08-11 21:32:16.006: DEBUG/TAG(2394): 4000
08-11 21:32:16.016: DEBUG/proch1(2394): 12000
08-11 21:32:16.016: DEBUG/proch2(2394): 12000
</code></pre>
