The Mobile Sensor API is supported as specified in the feature description but with the following exceptions.
Channel details for all sensors are defined as follows:
Sensor type |
Accuracy |
Data type |
Scale |
Unit |
Channel names |
---|---|---|---|---|---|
Accelerometer (SI values) |
0.1 |
|
0 |
m/s^2 |
|
Accelerometer (raw values) |
0.1 |
|
0 |
raw |
|
Battery charge level |
0.1429 |
|
0 |
% |
|
Charger state |
boolean |
|
0 |
boolean |
|
Network field intensity |
NoLoc |
|
0 |
% |
|
Each channel has one MeasurementRange
, which is common to
all channels. The MeasurementRanges
are detailed
as follows:
Sensor type |
Largest value |
Smallest value |
Resolution |
---|---|---|---|
Accelerometer (SI values) |
19.62 |
-19.62 |
0.15328125 |
Accelerometer (raw values) |
127.0 |
-128.0 |
1.0 |
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 |
Note: The values are specific to sensor device driver.
The Symbian platform supports the following parameters for Connector.open
for opening a SensorConnection
:
Function |
<quantity> |
<contextType> |
<model> |
<location> |
---|---|---|---|---|
Accelerometer (SI values) |
acceleration |
user |
Nokia |
NoLoc |
Accelerometer (raw values) |
acceleration |
user |
Nokia2 |
NoLoc |
Battery charge level |
battery_charge |
device |
Nokia |
device |
Charger state |
charger_state |
device |
Nokia |
device |
Network field intensity |
network_field_intensity |
device |
Nokia |
device |
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)
.
In addition to the parameters listed for SensorConnection
, the following property
values are defined:
Property name |
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: