I have a full screen program that overlays the status bar so that you can see it but cannot click on it (like the lock screen). When I run my program in Ice Cream Sandwich my app drops down below the status bar (allowing it to be touched). How can I get it to work again in ICS?
I use the following code:
final WindowManager.LayoutParams mOverLayParams = new WindowManager.LayoutParams(
WindowManager.LayoutParams.FILL_PARENT,
WindowManager.LayoutParams.FILL_PARENT,
WindowManager.LayoutParams.TYPE_SYSTEM_ALERT,
WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN,
PixelFormat.TRANSLUCENT);
I know only solution with replacing TYPE_SYSTEM_ALERT to TYPE_SYSTEM_OVERLAY. But in this way your window will not receive touch events.