title: Android current year and month in spinner
body: <p>with this code I view the current year in spinner, now I want to also see the current month. how? thanks</p>
  
  <pre><code>    if (years.size() == 0){
          int currentYear = Calendar.getInstance().get(Calendar.YEAR);
          int currentMonth = Calendar.getInstance().get(Calendar.MONTH) + 1;
          years.add(currentYear+"/"+currentMonth);
      }
  
      SpinnerAdapter adapter = new ArrayAdapter&lt;String&gt;(this, android.R.layout.simple_spinner_dropdown_item, years);
  
      yearSelector.setAdapter(adapter);
      yearSelector.setSelection(0);
      yearSelector.setOnItemSelectedListener(new OnItemSelectedListener() {
  
          @Override
          public void onItemSelected(AdapterView&lt;?&gt; adapterView, View view,
                  int position, long id) {
              String anno = years.get(position);
  
              showDetails(anno);
          }
  
          @Override
          public void onNothingSelected(AdapterView&lt;?&gt; arg0) {
              return;
          }
  </code></pre>