Shared Preferences: How to save files name in a spinner
<p>I'm making an app that can store disciplines grades.</p>

<p>First you can create a new discipline, choosing its name and placing your grade on that specific dicipline.</p>

<p>I'm using shared preferences to make that, the code is like this:</p>

<pre><code>SharedPreferences disciplines = getSharedPreferences("Math", MODE_PRIVATE);  
SharedPreferences.Editor prefEditor = disciplines.edit();  
prefEditor.putString("firstGrade", "80");
prefEditor.putString("secondGrade", "50" );
prefEditor.putString("thirdGrade", "65");
prefEditor.putString("fourthGrade", "25");
prefEditor.commit();
</code></pre>

<p>After that I want the user to be able to choose that discipline from a spinner in the main activity.</p>

<p><strong>How can I create a Spinner with this app Shared Preference files names?</strong></p>

<p>Like a spinner with "Math", and then "English", "Spanish" and other disciplines that he create.</p>

<p>Heres a image sample.<img src="http://i.stack.imgur.com/KMq1m.jpg" alt="Heres a image sample"></p>
