shared preferences returns location not int
<p>I am using the shared preferences editor to store numbers to save and use in another class with in my project, this is my source to save the data: </p>

<pre><code>public void overallEditor(){
        SharedPreferences.Editor editor = someData.edit();
        editor.putInt("winsOverall", winsOverall);
        editor.putInt("losesOverall", losesOverall);
        editor.putInt("tiesOverall", tiesOverall);
        editor.commit();
    }
</code></pre>

<p>this is my source that retrieves the data:</p>

<pre><code>private void getStats() {
        // TODO Auto-generated method stub
        SharedPreferences someData = getSharedPreferences(filename, 0);
        bestStreakStatsi = someData.getInt("newBestStreak", 0);
        winsOverall = someData.getInt("winsOverall", 0);
        tiesOverall = someData.getInt("tiesOverall", 0);
        losesOverall = someData.getInt("losesOverall", 0);
    }
</code></pre>

<h2>What is happening</h2>

<p><img src="http://i.stack.imgur.com/IJNrz.png" alt="enter image description here"></p>

<p>this is my source from my first class, if you need more from my source i can provide it but i cut out what is irrelevant:</p>

<pre><code>int wins, ties, loses, choice, streak, bestStreak, z, winsOverall, losesOverall, tiesOverall;

    private void refresh(){
            winrep.setText(w + wins);
            loserep.setText(l + loses);
            tierep.setText(t + ties);
            SharedPreferences.Editor editor = someData.edit();
            editor.putInt("winsp", wins);
            editor.putInt("losesp", loses);
            editor.putInt("tiesp", ties);
            editor.putInt("streakp", streak);
            editor.commit();
            overallEditor();
        }
        public void overallEditor(){
            SharedPreferences.Editor editor = someData.edit();
            editor.putInt("winsOverall", winsOverall);
            editor.putInt("losesOverall", losesOverall);
            editor.putInt("tiesOverall", tiesOverall);
            editor.commit();
        }
</code></pre>

<p>this is where it should be retrieving the ints:</p>

<pre><code>public class stats extends Activity{
    public static String filename = "stats";
    TextView bestStreakStats, overallWins, overallLoses, overallTies;
    int bestStreakStatsi, winsOverall, losesOverall, tiesOverall;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        // TODO Auto-generated method stub
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        setContentView(R.layout.stats);
        initizialize();
        getStats();
        displayStats();
    }
    private void displayStats() {
        // TODO Auto-generated method stub
        bestStreakStats.setText("You best winning streak: \t" + bestStreakStatsi);
        overallWins.setText("Your overall wins: \t" + overallWins);
        overallLoses.setText("Your overall loses: \t" + overallLoses);
        overallTies.setText("Your overall ties: \t" + overallTies);
    }
    private void getStats() {
        // TODO Auto-generated method stub
        SharedPreferences someData = getSharedPreferences(filename, 0);
        bestStreakStatsi = someData.getInt("newBestStreak", 0);
        winsOverall = someData.getInt("winsOverall", 0);
        tiesOverall = someData.getInt("tiesOverall", 0);
        losesOverall = someData.getInt("losesOverall", 0);
    }
    private void initizialize() {
        // TODO Auto-generated method stub
        bestStreakStats = (TextView) findViewById(R.id.tvBestStreakStats);
        overallWins = (TextView) findViewById(R.id.tvOverallWins);
        overallLoses = (TextView) findViewById(R.id.tvOverallLoses);
        overallTies = (TextView) findViewById(R.id.tvOverallTies);
    }
}
</code></pre>
