title: Android activity over default lock screen
body: <p>How can I display an <code>Activity</code> or <code>Dialog</code> to be visible over the lock screen?</p>
  
  <p>I have already tried displaying my lock activity when screen turns on by setting various window type in <code>Activity.onCreate()</code> method:  </p>
  
  <p><code>TYPE_PRIORITY_PHONE</code><br>
  <code>TYPE_SYSTEM_ALERT</code><br>
  <code>TYPE_KEYGUARD</code></p>
  
  <p>and others together with <code>SYSTEM_ALERT_WINDOW</code> and <code>INTERNAL_SYSTEM_WINDOW</code> permissions.</p>
  
  <p>My activity is visible after I unlock the device.</p>
  
  <p>UPDATE:</p>
  
  <p>I actually already managed to display my own Activity instead of default lock screen. It work perfectly unless you use HOME button.</p>