title: Simulating VolumeDown + Power button to capture screen programmatically from my Android service
body: <p>In Android Ice Cream Sandwich version, the key combo VolumeDown+Power button does screencapture. I was trying to do the same programmatically by sending key events from a background android service. But there are 2 issues,</p>
  
  <ol>
  <li>I have to hold the VolumeDown key until power button is pressed, but I am not finding any instrumentation api sendKeysSync() etc.. which sends only Key down event of a button\keycode.</li>
  <li>Sending KEYCODE_POWER doesn't work at all.</li>
  </ol>
  
  <p>Please let me know if these are constraints in Android ICS(Ice Cream Sandwich) version itself for various reasons or else is it possible?</p>
  
  <p>Also if there is any other way of doing screencapture from background without rooting the phone, let me know..</p>
  
  <p>-Thx in Adv
  -rahul</p>