import com.nokia.lib.Device;
var deviceObj = new Device();
deviceObj.DisableAutoRotation(true);