title: Activity does not start until the screen is turned on
body: <p>My service starts an Activity like this:</p>
  
  <pre><code>Intent intent = new Intent(context, CallMonitor.class);
  intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
  intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);
  startActivity(intent);
  </code></pre>
  
  <p>this happens in CallMonitor.onCreate():</p>
  
  <pre><code>@Override
  public void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
      getWindow().addFlags(WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD);
      getWindow().addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON);
      getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
      getWindow().addFlags(WindowManager.LayoutParams.FLAG_ALLOW_LOCK_WHILE_SCREEN_ON);
      getWindow().addFlags(WindowManager.LayoutParams.FLAG_DIM_BEHIND);
  </code></pre>
  
  <p>On most devices, the activity (called up from service) wakes up the device, turns on the screen and is displayed.</p>
  
  <p>But - for example - on Galaxy Tab 4, the activity <strong>is only called if the screen is already switched on</strong>.
  If the screen is switched off and the service calls up the activity, it is displayed with a <strong>delay</strong> - It will be displayed <strong>immediatly after turning the screen on</strong>.</p>
  
  <p>There is also a voice output in the activity. When the Galaxy S4 is switched off, it will not be played back - but immediatly after turning the screen on again.</p>
  
  <p>Any suggestions?
  I don't want to use WakeLock!</p>