Spinner onClick items
<p>i have created a spinner.could i place my spinner items in a table into my java file and call it (maybe from position) in one onClick method?</p>

<p>code:</p>

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

<p>here i m getting the spinner items from the string.xml..</p>
