title: Background service stops when phone goes in idle state
body: <p>I've a sticky background service which has to run all the time. Basically it keeps track of the time, its a custom clock timer. But once the device goes to idle state (when phone screen is turned off) the timer (background service) also gets paused.</p>
  
  <p>What should I do to make it always keep running even when the screen is turned off?</p>
  
  <pre><code>    public class TimerService extends Service {
      private Context context;
      @Override
          public IBinder onBind(Intent intent) {
              Logger.LogI(TAG, "Service binding");
              return null;
          }
  
        @Override
          public void onCreate() {
              super.onCreate();
              context = getApplicationContext();
          }
  
       @Override
          public int onStartCommand(Intent intent, int flags, int startId) {
         return Service.START_STICKY;
          }
      }
  </code></pre>