title: check if android version is less than 4 with phonegap?
body: <p>Im trying to check if the android version is less than 4 with phonegap.</p>
  
  <p>Im getting the version with this.</p>
  
  <pre><code>   var deviceOS  = device.platform;  //fetch the device operating system
     var deviceOSVersion = device.version;  //fetch the device OS version
            alert("Device OS: " + deviceOS); 
            alert("Device OS Version: " + deviceOSVersion);
  </code></pre>
  
  <p>And trying to check if the version is less than 4 with this, but it is not working?</p>
  
  <pre><code>if (deviceOSVersion &lt; 4) {
      alert("android less than 4");
  }
  </code></pre>
  
  <p>I have tested a few thing but no luck.<br>
  Any input appreciated thanks.</p>
  
  <p>UPDATE:
  Im trying to set the last code "useAnimations:animationen" to false if it is and android less than 4 and if it is an iPhone the "animationen" should be true. 
  But on the iPhone it is false with the below code?</p>
  
  <pre><code> var int = 0;
      var animationen='';
  
    function onBodyLoad()
          {         
         document.addEventListener("deviceready", onDeviceReady, false);
          }
  
          function onDeviceReady()
          {
      getDeviceProperty();
          }
  
      function getDeviceProperty(){
       var deviceOS  = device.platform;  //fetch the device operating system
       var deviceOSVersion = device.version;  //fetch the device OS version
            alert("Device OS: " + deviceOS); 
            alert("Device OS Version: " + deviceOSVersion); 
  
  
  if (deviceOS.indexOf('Android') &gt;= 0) {
  alert("its an android");
  int = parseInt(deviceOSVersion);
  if(int&lt;4){
  alert("animation false");
  animationen=false;
  }
  alert("apptype = android");
  }
  else
  {
  alert("apptype = iphone");
  animationen=true;
  }                     
  }
  
  
  var jQT = new $.jQTouch({
  useAnimations: animationen
  });
  </code></pre>