title: Android How schedule task for every night with JobDispatcher api?
body: <p>i have to download json response from web server on every night,previously i have used <code>AlarmManager</code> for scheduling tasks but i think for this kind of situation <a href="https://github.com/firebase/firebase-jobdispatcher-android" rel="nofollow noreferrer"><code>JobDispatcher</code></a> is great because it auto perform task if network available so i don't have to manage this kind of stuf.But i have found many examples of <code>JobDispatcher</code> and <code>JobScheduler</code> in all of them a simple job is scheduled or scheduled for some time delay but there is nothing relevant to my requirements,
  if anyone have idea of this please help or provide any link related to this, it will be very helpful.  </p>
  
  <p><strong>UPDATE</strong>   </p>
  
  <p><strong>1.</strong> <strong>How to make this to work every night,because currently it is only set alarm to midnight for once , how to make it repeted for every night at same time ?</strong></p>