Controller class loses control over xml screen

Hello guys,
I have controller class StartScreen which is also extended AbstractAppState. It seems that when I create constructor of this class with arguments, it loses its control over xml screen file, and when I change the constructor to default, it gains the control again. Can it be the cause? If so, how can I get over it?

Do you create your screen-controller manually?

If your screen-controller class has no nullary constructor then nifty cannot create a new instance dynamically.
In this case you should get a log warning that the class could not be instantiated and that nifty will use the default screen-controller.

You have to pass an instance of your controller to the nifty initializing method if the constructor of your controller takes arguments.
[java]nifty.fromXml(“Interface/MyXmlFile.xml”, “startScreen”, new MyScreenController(param1, param2));[/java]