如果我在 4.0 版本下使用 android,我运行了这些代码并且工作正常。但是当我使用android v 4.2(三星galaxy s4)时,device_os_version的结果是ver 2.0,我认为结果应该是ver 4.2。谁能告诉我为什么?
$requestingDevice = $wurflManager->getDeviceForHttpRequest($_SERVER);
$is_wireless = ($requestingDevice->getCapability('is_wireless_device') == 'true');
$device = $wurflManager->getDeviceForUserAgent($_SERVER['HTTP_USER_AGENT']);
$versi = strtoupper($device->getCapability('device_os_version'));