Skip to content Skip to sidebar Skip to footer

Setcontentview Gives An Exception

In my android app I set this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN ); Then my

Solution 1:

i cant understand properly first. I think you may be using setContentView method multiple times. one is to set the layout on the view. another one inside the click event. right? that not works. use that method once to set the layout. on click event you have to do your tasks on the views inside the layout. hope it helps. please post some code snippets for the perfect answers.

Solution 2:

you use setContentView only once in your 'onCreate' method, in general for the main window (one Activity = 1 view)

in your case you should probably change your Background..

Post a Comment for "Setcontentview Gives An Exception"