title: Can't put double SharedPreferences
body: <p>Getting error, the method put double is undefined for this type of sharedPreferences editor.Eclipse is given one quick fix add cast to editor, but when i do that its still given errors, Why cant i put double. </p>
  
  <p>The code:</p>
  
  <pre><code>@Override
  protected void onPause() {
      // TODO Auto-generated method stub
      super.onPause();
  
      if (TextUtils.isEmpty(editBl.getText().toString())) {
          numberOfBl = 0;
      } else {
          numberOfBl = Integer.parseInt(editBl.getText().toString();
  
      }
      if (TextUtils.isEmpty(editSt.getText().toString())) {
          tonOfSt = 0;
      } else {
          tonOfSt = Double.parseDouble(editSt.getText().toString());
  
      }
  
      SharedPreferences prefs = getSharedPreferences(
              "SavedTotals", Context.MODE_PRIVATE);
  
      SharedPreferences.Editor editor = prefs.edit();
  
      editor.putInt("savedBl", numberOfBl);
      editor.putDouble("savedSt", tonOfSt);
  
  
      editor.commit();
  }
  </code></pre>