I have the following in OnCreate
requestWindowFeature(Window.FEATURE_NO_TITLE);
On resume is:
@Override
public void onResume(){
onCreate(savedInstanceState);
super.onResume();
}
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
this.savedInstanceState = savedInstanceState;
requestWindowFeature(Window.FEATURE_NO_TITLE);
context = this;
ps = PuzzleState.getInstance();
setContentView(R.layout.activity_pack_list);
}
It throws the exception when activity resumes: rewuestFeature must be called before adding content. Whats wrong ?