title: Show Dialogfragment on lock screen
body: <p>I'm trying to show a DialogFragment over lock screen.
  This has to happen when a user triggers an action via the new keyguard widget function.</p>
  
  <p>In particular it's a timepicker dialog that's shown, but the user only sees it if he unlocks the screen. How do i manage to show it even if the screen's locked?</p>
  
  <p>I already tried all combinations of this flags, but without success:</p>
  
  <pre><code>AlertDialog dialog = dBuilder.create();
      Window window = dialog.getWindow();
  
      window.addFlags(WindowManager.LayoutParams.FLAG_TURN_SCREEN_ON
              + WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED
              + WindowManager.LayoutParams.FLAG_DISMISS_KEYGUARD
              + WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
  </code></pre>
  
  <p>This is called in onCreateView.</p>
  
  <p>Thanks for your support!</p>