Use antlib.jar to connect to ANT+ sensor.

This commit is contained in:
Jimmy Shih
2012-05-31 18:11:22 -07:00
parent d42e92a868
commit 8dd10776f4
45 changed files with 744 additions and 4247 deletions
@@ -161,14 +161,12 @@ limitations under the License.
<string-array name="sensor_type_all_options">
<item>@string/settings_sensor_type_none</item>
<item>@string/settings_sensor_type_ant</item>
<item>@string/settings_sensor_type_srm</item>
<item>@string/settings_sensor_type_polar</item>
<item>@string/settings_sensor_type_zephyr</item>
</string-array>
<string-array name="sensor_type_all_values">
<item>@string/sensor_type_value_none</item>
<item>@string/sensor_type_value_ant</item>
<item>@string/sensor_type_value_srm_ant_bridge</item>
<item>@string/sensor_type_value_polar</item>
<item>@string/sensor_type_value_zephyr</item>
</string-array>
-1
View File
@@ -30,7 +30,6 @@ limitations under the License.
<string name="sensor_type_value_ant">ANT</string>
<string name="sensor_type_value_none">NONE</string>
<string name="sensor_type_value_polar">POLAR</string>
<string name="sensor_type_value_srm_ant_bridge">SRM_ANT_BRIDGE</string>
<string name="sensor_type_value_zephyr">ZEPHYR</string>
<string name="settings_map_track_color_mode_dynamic_value">DYNAMIC</string>
<string name="settings_map_track_color_mode_fixed_value">FIXED</string>
+4 -4
View File
@@ -18,10 +18,8 @@ limitations under the License.
<!-- Keys for persisted preferences. Sorted alphabetically. DO NOT TRANSLATE. -->
<string name="allow_access_key">allowAccess</string>
<string name="announcement_frequency_key">announcementFrequency</string>
<string name="ant_cadence_sensor_id_key">antCadenceSensorId</string>
<string name="ant_cadence_speed_sensor_id_key">antCadenceSpeedSensorId</string>
<string name="ant_heart_rate_sensor_id_key">antHeartRateSensorId</string>
<string name="ant_srm_bridge_sensor_id_key">antSrmBridgeSensorId</string>
<string name="ant_heart_rate_monitor_id_key">antHeartRateMonitorId</string>
<string name="ant_speed_distance_monitor_id_key">antSpeedDistanceMonitorId</string>
<string name="auto_resume_track_current_retry_key">autoResumeTrackCurrentRetry</string>
<string name="auto_resume_track_timeout_key">autoResumeTrackTimeout</string>
<string name="bluetooth_sensor_key">bluetoothSensor</string>
@@ -72,6 +70,8 @@ limitations under the License.
<string name="settings_reset_key">settingsReset</string>
<string name="settings_sensor_key">settingsSensor</string>
<string name="settings_sensor_ant_key">settingsSensorAnt</string>
<string name="settings_sensor_ant_reset_heart_rate_monitor_key">settingsSensorAntResetHeartRateMonitor</string>
<string name="settings_sensor_ant_reset_speed_distance_monitor_key">settingsSensorAntResetSpeedDistanceMonitor</string>
<string name="settings_sensor_bluetooth_key">settingsSensorBluetooth</string>
<string name="settings_sensor_bluetooth_pairing_key">settingsSensorBluetoothPairing</string>
<string name="settings_sensor_root_key">settingsSensorRoot</string>
+28 -38
View File
@@ -1726,11 +1726,6 @@ limitations under the License.
Character limit: ~26 (1 line)">
Sensor
</string>
<string name="settings_sensor_ant_not_paired"
translation_description="In the 'Sensor' settings, the summary for 'Unpair ANT+ heart rate
sensor' or 'Unpair SRM ANT+ bridge' when there no ANT+ device paired.">
Not paired.
</string>
<string name="settings_sensor_ant_options"
translation_description="In the 'Sensor' settings, the section header to configure the ANT+
options. Note that ANT+ is a radio standard.
@@ -1739,17 +1734,25 @@ limitations under the License.
ANT+ options
</string>
<string name="settings_sensor_ant_paired"
translation_description="In the 'Sensor' settings, the summary for 'Unpair ANT+ heart rate
sensor' or 'Unpair SRM ANT+ bridge' when there is an ANT+ device paired.
translation_description="In the 'Sensor' settings, the summary to indicate the paired ANT+
device. Note that ANT+ is a radio standard.
%1$d: sensor id number. E.g., '1'.">
%1$d: device id number. E.g., '1'.">
Paired with: %1$d.
</string>
<string name="settings_sensor_bluetooth_connected"
translation_description="The message when connected to a bluetooth sensor.
%1$s: sensor name. E.g., 'polar bluetooth'.">
Connected to %1$s
<string name="settings_sensor_ant_reset_heart_rate_monitor"
translation_description="In the 'Sensor' settings, under the 'ANT+ options', the option to reset
an ANT+ heart rate monitor. Note that ANT+ is a radio standard.
Character limit: ~26 (1 line)">
Reset heart rate monitor
</string>
<string name="settings_sensor_ant_reset_speed_distance_monitor"
translation_description="In the 'Sensor' settings, under the 'ANT+ options', the option to reset
an ANT+ speed distance monitor. Note that ANT+ is a radio standard.
Character limit: ~26 (1 line)">
Reset speed distance monitor
</string>
<string name="settings_sensor_bluetooth_options"
translation_description="In the 'Sensor' settings, the section header to configure the Bluetooth
@@ -1784,6 +1787,16 @@ limitations under the License.
sensor to connect to.">
The Bluetooth sensor to connect to.
</string>
<string name="settings_sensor_connected"
translation_description="The message when connected to a sensor.
%1$s: sensor name. E.g., 'polar bluetooth'.">
Connected to %1$s
</string>
<string name="settings_sensor_not_connected"
translation_description="The message when not connected to a sensor.">
Not connected.
</string>
<string name="settings_sensor_type"
translation_description="In the 'Sensor' settings, the dropdown option to choose a sensor type.
@@ -1792,10 +1805,10 @@ limitations under the License.
</string>
<string name="settings_sensor_type_ant"
translation_description="In the 'Sensor' settings, for the 'Sensor type' dropdown, the option to
connect to an ANT+ heart rate sensor. Note that ANT+ is a radio standard.
connect to an ANT+ sensor. Note that ANT+ is a radio standard.
Character limit: ~21 (1 line)">
ANT+ heart rate
ANT+
</string>
<string name="settings_sensor_type_none"
translation_description="In the 'Sensor' settings, for the 'Sensor type' dropdown, the option to
@@ -1812,14 +1825,6 @@ limitations under the License.
Character limit: ~21 (1 line)">
Polar Bluetooth
</string>
<string name="settings_sensor_type_srm"
translation_description="In the 'Sensor' settings, for the 'Sensor type' dropdown, the option to
connect to a SRM ANT+ bridge. Do not translate SRM, the company name, but can translate
ANT+, the radio standard, and bridge (network bridge).
Character limit: ~21 (1 line)">
SRM ANT+ bridge
</string>
<string name="settings_sensor_type_summary"
translation_description="In the 'Sensor' settings, the summary for the 'Sensor type' option
explaining that it is to configure the type of sensor to connect to.">
@@ -1833,21 +1838,6 @@ limitations under the License.
Character limit: ~21 (1 line)">
Zephyr Bluetooth
</string>
<string name="settings_sensor_unpair_ant"
translation_description="In the 'Sensor' settings, under the 'ANT+ options' configurations, the
option to unpair an ANT+ heart rate sensor. Note that ANT+ is a radio standard.
Character limit: ~26 (1 line)">
Unpair ANT+ heart rate
</string>
<string name="settings_sensor_unpair_srm"
translation_description="In the 'Sensor' settings, under the 'ANT+ options' configurations, the
option to unpair a SRM ANT+ bridge. Do not translate SRM, the company name, but can translate
ANT+, the radio standard, and bridge (network bridge).
Character limit: ~26 (1 line)">
Unpair SRM ANT+ bridge
</string>
<!-- Settings Sharing -->
<string name="settings_sharing"