title: Having Methods with Multiple Strings
body: <p>I know this isn't correct because it doesn't work, but I am not sure why this does not work.</p>
  
  <p>I have multiple spinners populated from a database by queries. </p>
  
  <pre><code>vTypeSpinner.setOnItemSelectedListener(new OnItemSelectedListener(){
  
              public void onItemSelected(AdapterView&lt;?&gt; parentView, View selectedItemView, int
                  pos, long id) {
                   if(pos!=0){
  
                      Cursor vTypeChose = (Cursor)(vTypeSpinner.getSelectedItem());
                      if (vTypeChose != null) {
                          String typePicked = vTypeChose.getString(
                          vTypeChose.getColumnIndex(DataBaseHelper.POWERSPORTS_TYPE));
                          vMake = (Cursor) DataBaseHelper.getPowersportsMake(typePicked);
                          scaMake.changeCursor(vMake);
                          Log.e("SpinnerTest", "Type Selected: " + vType.getString(vType.getColumnIndex(DataBaseHelper.POWERSPORTS_TYPE)));
  
  
                      }
                   }
              }
  
      vMakeSpinner.setOnItemSelectedListener(new OnItemSelectedListener(){
  
          public void onItemSelected(AdapterView&lt;?&gt; parentView, View selectedItemView, int
                  pos, long id) {
                   if(pos!=0){
  
                  Cursor vMakeChose = (Cursor)(vMakeSpinner.getSelectedItem());
                  if (vMakeChose != null) {
                      makePicked = vMakeChose.getString(
                      vMakeChose.getColumnIndex(DataBaseHelper.POWERSPORTS_MAKE));
                      vYear = (Cursor) DataBaseHelper.getPowersportsYear(typePicked, makePicked);
                      scaYear.changeCursor(vYear);
                      Log.e("SpinnerTest", "Make Selected: " + vMake.getString(vMake.getColumnIndex(DataBaseHelper.POWERSPORTS_MAKE)));
  
  
                  }
               }
          }
  </code></pre>
  
  <p>Once the vMakeSpinner item is selected, it starts the vYearSpinner code</p>
  
  <p>And this is my year spinner query</p>
  
  <pre><code>public static Cursor getPowersportsYear(String typePicked, String makePicked){
  return myDataBase.query(POWERSPORTS_TABLE, 
          new String [] {POWERSPORTS_ID, POWERSPORTS_YEARS}, 
          POWERSPORTS_TYPE+"='"+typePicked+"'" +" AND " + POWERSPORTS_MAKE+"='"+makePicked+"'", 
          null, 
          POWERSPORTS_YEARS, 
          null, 
          null);
  }
  </code></pre>
  
  <p>If I only have one string value within the DataBaseHelper methods, it works fine but only with one where argument.</p>
  
  <p>Updated with some Code:</p>
  
  <pre><code>public class PowersportsEquivalent extends Activity {
  
  DataBaseHelper myDbHelper;
  String typePicked;
  String makePicked;
  String yearPicked;
  SimpleCursorAdapter scaMake;
  SimpleCursorAdapter scaYear;
  
  Cursor vMake;
  Cursor vYear;
  
  @SuppressWarnings("deprecation")
  @Override
  protected void onCreate(Bundle savedInstanceState){
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_powersports_equivalent);
  </code></pre>