title: How can I put Long values in shared preference?
body: <p>I can't put <code>Long</code> values in shared preference. When I put <code>String</code> it is working fine.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>SharedPreferences repeat_rowId = getSharedPreferences("repeat_rowId", 0);
  SharedPreferences.Editor editor = repeat_rowId.edit();
  editor.putLong("rowId", mRowId);// I am getting the Error in this line..
  editor.putString("row_str","ABC");
  editor.commit();
  </code></pre>
  
  <p>How can I use <code>Long</code> values?</p>