title: Android Studio: Bug with Calendar.DAY_OF_WEEK
body: <p>I didn't found my "bug" in another question, so I really need help. </p>
  
  <p>In my app, I have this code: </p>
  
  <pre><code>    Calendar calendar = Calendar.getInstance();
      calendar.set(Calendar.MONTH, Calendar.MONTH);
      calendar.set(Calendar.YEAR, Calendar.YEAR);
      calendar.set(Calendar.DAY_OF_MONTH, Calendar.DAY_OF_MONTH);
  
      calendar.set(Calendar.HOUR_OF_DAY, Calendar.HOUR);
      calendar.set(Calendar.MINUTE, Calendar.MINUTE);
      calendar.set(Calendar.SECOND, Calendar.SECOND);
      frase(calendar);
  </code></pre>
  
  <p>This code is inside onCreate and the code below is below onCreate();</p>
  
  <pre><code>     public void frase(Calendar calendar)
  {
      int day = calendar.get(Calendar.DAY_OF_WEEK);
  
      switch (day) {
          case Calendar.MONDAY:textView.setText(getText(R.string.segunda));break;
          case Calendar.TUESDAY:textView.setText(getText(R.string.terca));break;
          case Calendar.WEDNESDAY:textView.setText(getText(R.string.quarta));break;
          case Calendar.THURSDAY:textView.setText(getText(R.string.quinta));break;
          case Calendar.FRIDAY:textView.setText(getText(R.string.sexta));break;
          case Calendar.SATURDAY:textView.setText(getText(R.string.sabado));break;
          case Calendar.SUNDAY:textView.setText(getText(R.string.domingo));break;
      }
  }
  </code></pre>
  
  <p>When I run the app, my emulator always returns me the Saturday case but the emulator day of the week is wednesday.</p>