title: Android : How to use PowerManager.wakeUp?
body: <p>I want to use the method <a href="http://developer.android.com/reference/android/os/PowerManager.html#wakeUp(long)" rel="nofollow">wakeUp</a> of PowerManager.
  Eclipse (ADT) don't reconize this method. But there is no problem for the opposite "goToSleep" :</p>
  
  <pre><code>PowerManager pm = (PowerManager) MyApplication.getAppContext().getSystemService(Context.POWER_SERVICE);
  pm.wakeUp(SystemClock.uptimeMillis()); //Detected as error by eclipse
  pm.goToSleep(SystemClock.uptimeMillis()); //Not detected as error and work well
  </code></pre>
  
  <p>Eclipse error : </p>
  
  <pre><code>The method wakeUp(long) is undefined for the type PowerManager
  </code></pre>
  
  <p>Eclipse propose to me a quickfix, but i've the same error : </p>
  
  <pre><code>((Object) pm).wakeUp(SystemClock.uptimeMillis()); //the same error 
  </code></pre>
  
  <p>Is this a bug or just me?
  Thanks !</p>