1

I want to add the following flag to my activity:

getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);

I'm not sure if this line should be before super.onCreate(..) method or after. Is the order important, and is there any difference at all?

Cœur
  • 37,241
  • 25
  • 195
  • 267
aarnaut
  • 507
  • 6
  • 17
  • 1
    I think It was answered [here already](http://stackoverflow.com/questions/4250149/requestfeature-must-be-called-before-adding-content) – Vucko Jul 08 '16 at 07:35

0 Answers0