title: Why is there no InputManager.getInstance() for me? And injectInputEvent()?
body: <p>I'm trying to develop a service that injects touch events to the system while the service interacts with some hardware/remote server. I've googled and everyone suggests using the <code>InputManager</code> class, referencing <a href="https://github.com/android/platform_development/tree/master/cmds/monkey" rel="nofollow">Monkey</a> as an example project to follow.</p>
  
  <p>However, there is no <code>getInstance()</code> method for me in <code>InputManager</code>! All I have access to is exactly what the <a href="http://developer.android.com/reference/android/hardware/input/InputManager.html" rel="nofollow">documentation</a> shows. No <code>getInstance()</code> method, and most importantly, no <code>injectInputEvent()</code> method.</p>
  
  <p>My build target SDK is Android 4.1.2, and my AndroidManifest.xml file specifies a target SDK version of 16 (I've tried changing the min target to 16 too, which didn't help (plus I'd like to keep it at 8 if possible)).</p>
  
  <p>How on earth can I use <code>InputManager</code> like Monkey does? Where are the methods Monkey is using, and why can't I use them?</p>