title: how to get Selected item of spinner and include in it if selected item for another spinner?
body: <p>Simply I want to do something like this</p>
  <pre><code>private EditText num1;
  private EditText num2;
  private Spinner spinner1;
  private Spinner spinner2;
  Double value;
   num.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
   protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_lengthconverter);
      spinner1= (Spinner) findViewById(R.id.spinner1);
      spinner2= (Spinner) findViewById(R.id.spinner2);
      num1= findViewById(R.id.num1);
      num2= findViewById(R.id.num2);
     spinner1.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
         @Override
          public void onItemSelected(AdapterView&lt;?&gt; parent, View view, int position, long id) {
              
              if (position==0 &amp;&amp; spinner2.getItemAtPosition(1).equals(&quot;something&quot;))///I mean 
      here if position 0 at spinner 1 and position 1 in spinner2 selected do this{
                  value = num1* 1;
  </code></pre>
  <p>Then add exchange to change the values on num1 and num2</p>