I tried to create a new Android application and I tried to hide the action bar in the constructor of MainActivity, using the line requestWindowFeature(Window.FEATURE_NO_TITLE);
I've done this previously many times and there wasn't any problem in this. But when I try the same now it throws a error mentioning that "request feature must be called before adding the content"
Even I've tried adding this line in various positions but there wasn't any change in result. Can anyone help me solving this issue.