}
void preferences() {
+ new TeleGPSPreferences(this, voice());
}
void load_maps() {
new AltosSiteMapPreload(this);
}
- void monitor() {
- AltosDevice device = AltosDeviceUIDialog.show(this,
- AltosLib.product_basestation);
- if (device == null)
- return;
+ void disconnect() {
+ setTitle("TeleGPS");
+ stop_display();
+ remove_frequency_menu();
+ }
+
+ void connect(AltosDevice device) {
if (reader != null)
disconnect();
try {
}
}
- void disconnect() {
- setTitle("TeleGPS");
- stop_display();
- remove_frequency_menu();
+ void monitor() {
+ AltosDevice device = AltosDeviceUIDialog.show(this,
+ AltosLib.product_basestation);
+ if (device == null)
+ return;
+ connect(device);
+ }
+
+ public void scan_device_selected(AltosDevice device) {
+ connect(device);
}
void scan() {
+ new AltosScanUI(this, false);
}
void download(){