- // Reset the ConnectThread because we're done
- connect_thread = null;
-
- // Send the device name back to the Telemetry Service
- name = device.getName();
- Message msg = handler.obtainMessage(TelemetryService.MSG_CONNECTED);
- Bundle b = new Bundle();
- b.putString(TelemetryService.KEY_DEVNAME, name);
- msg.setData(b);
- handler.sendMessage(msg);
+ // Let TelemetryService know we're connected
+ handler.obtainMessage(TelemetryService.MSG_CONNECTED).sendToTarget();