
Originally Posted by
manikantan
There is a FSCommand to detect the handset. You can use it to differentiate N95 and E71.
Ah, but I don't want to be too specific because then there'll come new device with the same specs but different name.
I think I found a way to solve this, although it can't be verified in device central (CS4): I just test to see if the device has accelerometer sensors. If it doesn't, it is "E71-like":
Code:
function hasSensors():Boolean
{
var inParam = {SearchCriterion:"AccelerometerAxis"};
var outParams = sensors.FindSensorChannel(inParam);
if (outParams.ErrorCode == 0)
return (true);
return (false);
}
Ranco