Flags to show a view on top of lock screen
问题 I am trying to add a view(ImageButton for example) to Window using WindowManager.addView(button) , What are the layout params so that the button can be seen on "lock screen". Thanks in advance. 回答1: You can try adding type as WindowManager.LayoutParams.TYPE_SYSTEM_ERROR in the WindowManager.LayoutParams constructor which is illustrated below : WindowManager.LayoutParams params=new WindowManager.LayoutParams(); params.type=WindowManager.LayoutParams.TYPE_SYSTEM_ERROR; The aforementioned lines