+import org.altusmetrum.altoslib_1.*;
+
+class AltosLocationListener implements LocationListener {
+ Handler handler;
+
+ public void onLocationChanged(Location location) {
+ handler.obtainMessage(TelemetryService.MSG_LOCATION, location).sendToTarget();
+ }
+
+ public void onStatusChanged(String provider, int status, Bundle extras) {
+ }
+
+ public void onProviderEnabled(String provider) {
+ }
+
+ public void onProviderDisabled(String provider) {
+ }
+
+ public AltosLocationListener(Handler handler) {
+ this.handler = handler;
+ }
+}