The Symbian platform supports the Mobile Sensor API as specified in the feature description but with the following exceptions.
The Symbian platform defines the following data properties for sensor channels:
Sensor |
Accuracy |
Data type |
Scale |
Unit |
Channel names |
---|---|---|---|---|---|
Accelerometer (raw values) |
0.1 |
|
0 |
raw |
|
Accelerometer (SI values) |
0.1 |
|
0 |
m/s^2 |
|
Battery charge level |
0.1429 |
|
0 |
% |
|
Charger state |
boolean |
|
0 |
boolean |
|
Network field intensity |
NoLoc |
|
0 |
% |
|
The Symbian platform defines the following measurement ranges for sensor channels:
Note: The values are specific to sensor device driver.
Sensor |
Channels |
Largest value |
Smallest value |
Resolution |
---|---|---|---|---|
Accelerometer (raw values) |
|
127.0 |
-128.0 |
1.0 |
Accelerometer (SI values) |
|
19.62 |
-19.62 |
0.15328125 |
Battery charge level |
|
100.0 |
0.0 |
14.29 |
Charger state |
|
1.0 |
0.0 |
1.0 |
Network field intensity |
|
100.0 |
0.0 |
1.0 |
For more information about the supported sensor channels, see Appendix E of the Mobile Sensor API specification.
The Symbian platform supports the following parameters
for Connector.open
for opening a SensorConnection
:
Function |
<quantity> |
<contextType> |
<model> |
<location> |
---|---|---|---|---|
Accelerometer (raw values) |
|
|
|
|
Accelerometer (SI values) |
|
|
|
|
Battery charge level |
|
|
|
|
Charger state |
|
|
|
|
Network field intensity |
|
|
|
|
For a description of the terms, see section Finding and identifying sensors.
You
can also retrieve the above values during runtime by calling SensorManager.findSensors(null, null)
.
The Symbian platform defines the following sensor properties:
Property |
Type |
Value |
---|---|---|
|
string |
See |
|
string |
|
On Symbian devices, sensors are always available, push
MIDlets are not supported, and the maximum buffer size is 256. This
results in the following return values for SensorInfo
methods: