diff options
author | Teddy <[email protected]> | 2013-08-26 08:50:47 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2013-08-26 08:50:47 +0800 |
commit | 7a606637907476942c1f6686137ada6898d7eb14 (patch) | |
tree | 1510da0a6764f18a66958ebae6587353ac6e019c /client/.metadata/.plugins/org.eclipse.core.resources/.history/5b | |
parent | 537d01ac3e78dec6828e068979dcd061e8f68a98 (diff) |
purged the repo
Diffstat (limited to 'client/.metadata/.plugins/org.eclipse.core.resources/.history/5b')
2 files changed, 0 insertions, 104 deletions
diff --git a/client/.metadata/.plugins/org.eclipse.core.resources/.history/5b/a01d01234f0d00131719b896d543f08c b/client/.metadata/.plugins/org.eclipse.core.resources/.history/5b/a01d01234f0d00131719b896d543f08c deleted file mode 100644 index 5ef6d3d..0000000 --- a/client/.metadata/.plugins/org.eclipse.core.resources/.history/5b/a01d01234f0d00131719b896d543f08c +++ /dev/null @@ -1,42 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<manifest xmlns:android="http://schemas.android.com/apk/res/android" - package="com.macaroon.piztor" - android:versionCode="1" - android:versionName="1.0" > - - <uses-sdk - android:minSdkVersion="8" - android:targetSdkVersion="17" /> - - <application - android:allowBackup="true" - android:icon="@drawable/ic_launcher" - android:label="@string/app_name" - android:theme="@android:style/Theme.NoTitleBar" > - <activity - android:name="com.macaroon.piztor.InitAct" - android:label="@string/app_name" > - <intent-filter> - <action android:name="android.intent.action.MAIN" /> - - <category android:name="android.intent.category.LAUNCHER" /> - </intent-filter> - </activity> - <activity - android:name="com.macaroon.piztor.Login" - android:label="@string/activity_login" > - </activity> - <activity - android:name="com.macaroon.piztor.Main" - android:label="@string/title_activity_main" > - </activity> - <activity - android:name="com.macaroon.piztor.Setting" - android:label="@string/title_activity_setting" > - </activity> - </application> - - <uses-permission android:name="android.permission.INTERNET" /> - <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> - -</manifest> diff --git a/client/.metadata/.plugins/org.eclipse.core.resources/.history/5b/b09b88be520d00131719b896d543f08c b/client/.metadata/.plugins/org.eclipse.core.resources/.history/5b/b09b88be520d00131719b896d543f08c deleted file mode 100644 index 5c0e0de..0000000 --- a/client/.metadata/.plugins/org.eclipse.core.resources/.history/5b/b09b88be520d00131719b896d543f08c +++ /dev/null @@ -1,62 +0,0 @@ -package com.macaroon.piztor; - -import android.content.Context; -import java.util.Timer; -import java.util.TimerTask; - -import android.content.Context; -import android.os.Handler; -import android.os.Message; -import android.util.Log; -import android.os.SystemClock; - - -public class Tracker implements Runnable { - - private static final long TIME_DELTA = 1000 * 1; // 1 second - public Timer timer; - private final Context mContext; - GPSTracker myTracker; - Handler mHandler; - Message message; - - public Tracker(Context context, Handler yHandler) { - timer = new Timer(); - mContext = context; - myTracker = new GPSTracker(mContext); - mHandler = yHandler; - } - - public void run() { - GPSTask myTask = new GPSTask(); - timer.schedule(myTask, 0, TIME_DELTA); - } - - class GPSTask extends TimerTask { - @Override - public void run() { - message = new Message(); - message.what = 0; - myTracker.getLocation(); - Log.d("Location", "Fetching location....."); - if (myTracker.canGetLocation()) { - double latitude = myTracker.getLatitude(); - double longitude = myTracker.getLongitude(); - - Log.d("TTTTTTTTTTTTTTTTTTTTTTTime","TTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTime"); - System.out.println("GPSTIME" + myTracker.location.getTime()); - System.out.println("SYSTIME" + SystemClock.elapsedRealtime()); - - if(myTracker.isGPSFix()) { - message.what = 1; - } else { - message.what = 2; - } - mHandler.sendMessage(message); - } else { - message.what = 0; - mHandler.sendMessage(message); - } - } - } -} |