title: what is the proper, non-deprecated way to wake up the device?
body: <p>My requirement is: after a <a href="https://developer.android.com/google/gcm/index.html">GCM</a> message arrives, the device should wake up to display a high-priority notification. The device <em>should turn the screen on</em>. </p>
  
  <p>Currently I'm using <a href="http://developer.android.com/reference/android/os/PowerManager.WakeLock.html">WakeLock</a> to achieve this. The <code>newWakeLock()</code> method expects a lock level AND a flag to be passed (as the 1st param, bitwise or'd). </p>
  
  <p>I'm using <code>PowerManager.ACQUIRE_CAUSES_WAKEUP</code> flag since it does exactly what I need. However, I'm a bit frustrated about the lock level. So according to the <a href="http://developer.android.com/reference/android/os/PowerManager.html">docs</a>, I got the following options:</p>
  
  <ul>
  <li><code>PARTIAL_WAKE_LOCK</code> - not compatible with <code>ACQUIRE_CAUSES_WAKEUP</code> / doesn't turn the screen on</li>
  <li><code>SCREEN_DIM_WAKE_LOCK</code> - deprecated</li>
  <li><code>SCREEN_BRIGHT_WAKE_LOCK</code> - deprecated</li>
  <li><code>FULL_WAKE_LOCK</code> - deprecated</li>
  </ul>
  
  <p>The suggested <code>FLAG_KEEP_SCREEN_ON</code> is completely useless in this scenario. I ended up just supressing the deprecation warning:</p>
  
  <pre><code>@SuppressWarnings("deprecation")
  PowerManager.WakeLock screenOn = ((PowerManager) c.getSystemService(Context.POWER_SERVICE)).newWakeLock(
  PowerManager.SCREEN_DIM_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP, TAG);
  screenOn.acquire();
  mNotifyMgr.notify(mNotificationId, mBuilder.build());
  screenOn.release();
  </code></pre>
  
  <p><strong>The question</strong>: is there a non-deprecated reliable way to wake up the device in the described case?</p>
  
  <p><strong>EDIT</strong>  I'm not asking for workarounds to wake up the device. My question is <em>whether this is possible to wake up the device from the background (without a running <code>Activity</code>) using no deprecated APIs</em></p>