+import org.altusmetrum.altoslib_1.*;
+
+class AltosLocationListener implements LocationListener {
+ TelemetryService service;
+ boolean fine;
+
+ public void onLocationChanged(Location location) {
+ service.sendLocation(location);
+ }
+
+ public void onStatusChanged(String provider, int status, Bundle extras) {
+ }
+
+ public void onProviderEnabled(String provider) {
+ }
+
+ public void onProviderDisabled(String provider) {
+ }
+
+ public AltosLocationListener(TelemetryService service, boolean fine) {
+ this.fine = fine;
+ this.service = service;
+ }
+}