I have a problem that i've mentioned in title.
According to this answer It does in ViewController in ViewDidAppear. But how to import this piece of code to java and where to call it if i want to change rotation after some point of the game.
I tried to do something like this:
long landscapeOrientation = UIInterfaceOrientation.LandscapeLeft.value();
UIDevice.getCurrentDevice().getKeyValueCoder().setValue("orientation", landscapeOrientation);
Stuck since i need NSObject...
Thanks to Demyan Kimitsa from Robovm's gitter.
long landscapeOrientation = UIInterfaceOrientation.LandscapeLeft.value();
UIDevice.getCurrentDevice().getKeyValueCoder().setValue("orientation", NSNumber.valueOf((int) landscapeOrientation));