title: Clever way to wakeup Android background service on shake
body: <p>I want my Android background to go into <em>sleep</em> mode - <strong>but then</strong> <em>wake up when the user starts moving</em>.
  However, if I use the accelerometer in <a href="http://developer.android.com/reference/android/hardware/SensorManager.html#SENSOR_DELAY_NORMAL" rel="nofollow">NORMAL</a> mode (the lowest sample rate ~ 5Hz) I fear it would still consume too much power.
  The best way to do it so far is on <a href="http://developer.android.com/reference/android/content/Intent.html#ACTION_USER_PRESENT" rel="nofollow">USER_PRESENT</a> - screen on and unlocked. </p>
  
  <p>Not even <a href="http://developer.android.com/reference/android/content/Intent.html#ACTION_SCREEN_ON" rel="nofollow">screen on(possibly with keyguard present)</a> works, because, as many of you may know, there are plenty of bad apps out there that will hold a wakelock and start the screen from time to time.</p>
  
  <p>I am contemplating having the user push the volume up/down buttons..</p>
  
  <p>Is there any better solution to this?</p>