title: Set Calendar to next Thursday
body: <p>I'm developing an app in Android which have a service that must be executed every Thursday and Sunday at 22:00</p>
  
  <p>What I do need, is to set a Calendar to that day and time. However, I'm not sure about how to do it.</p>
  
  <pre><code>Calendar calendar = Calendar.getInstance();
  </code></pre>
  
  <p>This is giving me a calendar with the current date and time.</p>
  
  <p>I know I can <strong>add</strong> days, minutes, hours, etc. But, is there any way to directly <code>setNext("thursday")</code>?</p>
  
  <p>I don't want to do many maths there. I mean I'm looking for an answer which doesn't need to calculate how many minutes/hours/days are left till next thursday.</p>
  
  <p>Thank you!!</p>