Android full Screen flag gives an exception

Posted by sukitha on Stack Overflow See other posts from Stack Overflow or by sukitha
Published on 2010-05-19T08:33:58Z Indexed on 2010/05/19 8:40 UTC
Read the original article Hit count: 222

Filed under:
|
|
|
|

In my android app I set

this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, 
                                WindowManager.LayoutParams.FLAG_FULLSCREEN );

Then my touch screen event doesnt’ work any more.

Further Explaining, I have a button and onClick it changes the contentView by setContentView(R.layout.choose_player);. It works fine. But if you take the focus to the button by the trackball(making it yellow) and tap on it, it gives the exception.

java.lang.IllegalArgumentException: parameter must be a descendant of this view

© Stack Overflow or respective owner

Related posts about android

Related posts about illegal