For some reason I am getting the exception
“android.util.AndroidRuntimeException: requestFeature() must be called before adding content”
on the following command:
useTitleFeature = window.requestFeature(Window.FEATURE_CUSTOM_TITLE);
Kinda doesn’t make any sense.
Add that to the fact that it depends where I call it from.
If I call the method that contains it from the onCreate then it is ok.
However, if I call the method from the “onPostExecute” of an AsyncTask then it doesn’t work.
If I skip the command it still lets me do setContent.
It’s only this command that it doesn’t like.
You have to put that command before the
setContentView(R.layout.main);.Hope that helps.