The javax.microedition.sensor
package is supported
as specified in section Feature
Description with following considerations:
Only the following parameters are available for Connector.open
for
opening a SensorConnection
in Nokia S60 devices:
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.
These values can be also found in runtime by calling SensorManager.findSensors(
null, null )
.
In addition to the parameters shown in SensorConnection
description, the following property values
are defined:
Property name |
Type |
Value |
---|---|---|
|
String |
see |
|
String |
Nokia |
In S60 devices, sensors are always available, push MIDlets are not supported,
and maximum buffer size is 256. This results in the following return values
for SensorInfo
methods:
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 MeasurementRange
s
are detailed as follows: