Error: 'requestFeature() must be called before adding content' (?)

Hello fellow programmers,

Next little problem: thanks to Blong(many thanks!) I was able to fix the previous problem, but I get an error I do not understand. When launching the app I get a black screen while running the lines

    serverIntent :=new Intent(self,typeof(DeviceListActivity));
    startActivityForResult(serverIntent, REQUEST_CONNECT_DEVICE_SECURE);

throws:
An uncaught exception of type: android.util.AndroidRuntimeException occurred
Message: ‘android.util.AndroidRuntimeException: requestFeature() must be called before adding content’

What does this mean? Never seen it before and not sure how to fix it. Anyone know how to solve this…?

Many thanks in advance!!

Greets,
Oznov

Hello,

These two lines looks good. The exception message tells you that requestFeature() has to be called before setContentView().