[mw_shl_code=javascript,true]function getAndroidVersion(ua) {
var ua = ua || navigator.userAgent;
var match = ua.match(/Android\s([0-9\.]*)/);
return match ? match[1] : false;
};
getAndroidVersion(); //"4.2.1"
parseInt(getAndroidVersion()); //4
parseFloat(getAndroidVersion()); //4.2[/mw_shl_code]Reference:
Pick up the Android version in the browser by Javascript http://stackoverflow.com/questio ... owser-by-javascript