Change device orientation from portrait to landscape


I know that I can change the default orientation from the XML file
but , is there anyway to change the device orientation programmatically (in runtime)??


Other than manually rotating the device, not really. This would be something you’d writing a plugin for to modify the main App view in cordova