get day name from day number of the year android
<p>I want to <strong>get day name of the week</strong> from the <strong>day number of the year</strong> in android. Example: what would be the day name of 344th day of year 2016. My server gives me data like this &amp; have to use this to find out the day name.</p>

<pre><code>{
  "id": 106,
  "month": 12,
  "year": 2016,
  "yDay": 344,
  "hour": 19
}
</code></pre>

<p>I can get the current day number from the calendar. </p>

<p><code>Calendar calendar = Calendar.getInstance();
int dayOfYear = calendar.get(Calendar.DAY_OF_YEAR);</code></p>