Android getting selected spinner text
<p>I am trying to get the selected item from a spinner, I want to then store this item into an array but at the moment I am just wondering how I can get the current selected item. Below is my current spinner code I have many spinners within the class.</p>

<pre><code>Spinner session = (Spinner) findViewById(R.id.spinnerSession);
    ArrayAdapter&lt;CharSequence&gt; adapterSession = ArrayAdapter.createFromResource(
            this, R.array.session_array, android.R.layout.simple_spinner_item);
    adapterSession.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
    session.setAdapter(adapterSession);
</code></pre>

<p>this spinner binds to an array defined within my strings file. So all I want it to get the item selected by the user.</p>

<p>thanks</p>
