Get and set value spinner from other activity in android
<p>I have code like this -mainclass-</p>

<pre><code> Spinner pilihtype;
 ArrayAdapter&lt;CharSequence&gt; adapter = 
 ArrayAdapter.createFromResource(this, R.array.typestore, android.R.layout.simple_spinner_item);

 adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
 pilihtype=(Spinner)findViewById(R.id.Stype);
 pilihtype.setAdapter(adapter);
</code></pre>

<p>it show my spinner value and it works</p>

<p>And now i Have a editclass that have spinner too. I want my spinner in editclass setvalue from selected value in mainclass , Can u give me a solution?? thanks</p>
