Sharedpreferences Error (2 activities)
<p>I have 2 Activities. In "A" activity I have a button and when user clicks this button, "B" Activity long data will change. </p>

<p>If the user doesn't click this button, in "B" Activity change standard long data...</p>

<p>Here is my code in "A" Activity's button;</p>

<pre><code> SharedPreferences prefs = getSharedPreferences("sure", MODE_PRIVATE);
              SharedPreferences.Editor editor = prefs.edit();
              editor.putString("veri", "31000");
              editor.commit();
</code></pre>

<p>Here is my code in "B" Activity's for get;</p>

<pre><code>SharedPreferences prefs = getSharedPreferences("sure", MODE_PRIVATE); 
long kalansure = prefs.getLong("veri", 61000);
</code></pre>

<p>But it is not working...</p>