From 69a0eecd6a831127d04970c4c1b5749c641b8e5e Mon Sep 17 00:00:00 2001 From: Teddy Date: Sun, 25 Aug 2013 20:54:18 +0800 Subject: removed obsolete dir --- .../src/com/example/gpstracking/Tracker.java | 33 ---------------------- 1 file changed, 33 deletions(-) delete mode 100644 misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/Tracker.java (limited to 'misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/Tracker.java') diff --git a/misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/Tracker.java b/misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/Tracker.java deleted file mode 100644 index 2e08a91..0000000 --- a/misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/Tracker.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.example.gpstracking; - -import java.util.Timer; -import java.util.TimerTask; - -public class Tracker implements Runnable { - - private static final long TIME_DELTA = 1000 * 60 * 5; - - Controller controller; - - public Tracker(Controller newController) { - controller = newController; - } - - public void run() { - public Timer timer; - TimerTask task = new GPSTask(); - timer.schedule(new GPSTask(), 0, TIME_DELTA); - } - - class GPSTask extends TimerTask { - public void run() { - GPSTracker tracker; - tracker = new GPSTracker(Tracker.this); - - double latitude = tracker.getLatitude(); - double longitude = tracker.getLongitude(); - - controller.recieveLocation(latitude, longitude); - } - } -} -- cgit v1.2.3-70-g09d2