requestFeature() must be called before adding content

Error is shown in the android studio : Process: com.codingquery.hidetitlebar, PID: 6115 java.lang.RuntimeException: Unable to...