title: Android Calendar get current day of week as string
body: <p>i tried to get a string with the name of the actual weekday this way:</p>
  
  <pre><code>            Calendar c = Calendar.getInstance();
              int dayOfWeek = c.get(Calendar.DAY_OF_WEEK);
  
              if (c.get(Calendar.MONDAY) == dayOfWeek) weekDay = "monday";
              else if (c.get(Calendar.TUESDAY) == dayOfWeek) weekDay = "tuesday";
              else if (c.get(Calendar.WEDNESDAY) == dayOfWeek) weekDay = "wednesday";
              else if (c.get(Calendar.THURSDAY) == dayOfWeek) weekDay = "thursday";
              else if (c.get(Calendar.FRIDAY) == dayOfWeek) weekDay = "friday";
              else if (c.get(Calendar.SATURDAY) == dayOfWeek) weekDay = "saturday";
              else if (c.get(Calendar.SUNDAY) == dayOfWeek) weekDay = "sunday";
  </code></pre>
  
  <p>but <code>weekDay</code> stays always null and i actually have no idea why because the debugger says that <code>dayOfWeek</code> is 5 so i should be equal to <code>c.get(Calendar.THURSDAY)</code></p>