I\'m building a web app and wanting to disable transitions effects on Android devices under version 3.0.
Is there anyway to pick up the Android version number by Ja
Use below code to get 2 digit version of Android
var ua = navigator.userAgent;
if( ua.indexOf("Android") >= 0 )
{
var androidversion = parseFloat(ua.slice(ua.indexOf("Android")+8));
if (androidversion < 2.3)
{
// do whatever
}
}
For example
Mozilla/5.0 (Linux; U; Android 2.2.1; fr-ch; A43 Build/FROYO) AppleWebKit/533.1 (KHTML, like Gecko) Version/4.0 Mobile Safari/533.1
will return Android Version = 2.2