title: How to implement accelerometer with duty cycle in Android application
body: <p>I am trying to duty cycle the accelerometer on Android phone, but I am not sure what's the correct way to implement it.
  More specifically, I want to assign a duty cycle percentage x% which means that the accelerometer would be activated for x% percent of the time, and rest for 1-x% percent of the time.
  I am thinking about using two TimerTasks, but I would like to know other options as well.</p>
  
  <p>Thanks!</p>