Android's floating windows coupled with FLAG_SHOW_WHEN_LOCKED fails
问题 My app, shows a dialog box to the user before the lock screen. It's a simple Activity that contains DialogFragments (from the support library as this app runs on 2.2+). Since the actual activity that displayed those dialogs was not a floating window by Android's standards, getWindow().addFlags(WindowManager.LayoutParams.FLAG_SHOW_WHEN_LOCKED); worked fine. However, I was thinking I'd use an Activity that looks like a Dialog instead. All the Dialog themes (Holo, etc), though, have this item: