title: android FLAG_SHOW_WHEN_LOCKED not working
body: <p>I am trying to get my application over the lock screen for some input from user, but unable to<br>
  do so.</p>
  
  <p>I have tried the following lines in onCreate as well as onAttachToWindow callbacks but nothing seems to wor</p>
  
  <pre><code>Window window = getWindow();
  window.addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED);
  </code></pre>
  
  <p>I have checked most questions on stackoverflow and they all point to the above mentioned solution.</p>
  
  <p>Do we need to use any permission or am I missing anything.
  I am working on a rooted galaxy S</p>