title: Run code every min in foreground service
body: <p>How can I set a timer, within a service that is running in foreground, so it runs a piece of code every 1 min. In pseudo code I want smth like this.</p>
  
  <pre><code>public int onStartCommand(Intent intent, int flags, int startId) {
  
      startEveryMinTask()
  
      return START_STICKY;
  }
  
  private void startEveryMinTask() {
      //do stuf
  }
  </code></pre>