summaryrefslogtreecommitdiff
path: root/misc/client
diff options
context:
space:
mode:
authorTeddy <[email protected]>2013-08-25 20:54:18 +0800
committerTeddy <[email protected]>2013-08-25 20:54:18 +0800
commit69a0eecd6a831127d04970c4c1b5749c641b8e5e (patch)
tree913847bb7de0ec79ced41b2bb79ed9ed1698df6b /misc/client
parent951907736830aadaebf8088433401b6d752e1cec (diff)
removed obsolete dir
Diffstat (limited to 'misc/client')
-rw-r--r--misc/client/Piztor/.classpath9
-rw-r--r--misc/client/Piztor/.project33
-rw-r--r--misc/client/Piztor/.settings/org.eclipse.jdt.core.prefs4
-rw-r--r--misc/client/Piztor/AndroidManifest.xml36
-rw-r--r--misc/client/Piztor/bin/AndroidManifest.xml36
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/ActMgr.classbin2616 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/ActStatus.classbin328 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/AppMgr$ActivityStatus.classbin1412 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/AppMgr.classbin2846 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/BuildConfig.classbin347 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/EmptyStatus.classbin471 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/InitAct.classbin804 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/PiztorAct.classbin2205 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/R$attr.classbin343 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/R$dimen.classbin464 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/R$drawable.classbin410 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/R$id.classbin396 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/R$layout.classbin406 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/R$menu.classbin419 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/R$string.classbin518 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/R$style.classbin434 -> 0 bytes
-rw-r--r--misc/client/Piztor/bin/classes/com/macaroon/piztor/R.classbin683 -> 0 bytes
-rw-r--r--misc/client/Piztor/gen/com/macaroon/piztor/BuildConfig.java6
-rw-r--r--misc/client/Piztor/gen/com/macaroon/piztor/R.java70
-rw-r--r--misc/client/Piztor/ic_launcher-web.pngbin51394 -> 0 bytes
-rw-r--r--misc/client/Piztor/libs/android-support-v4.jarbin556198 -> 0 bytes
-rw-r--r--misc/client/Piztor/proguard-project.txt20
-rw-r--r--misc/client/Piztor/project.properties14
-rw-r--r--misc/client/Piztor/res/drawable-hdpi/ic_launcher.pngbin7658 -> 0 bytes
-rw-r--r--misc/client/Piztor/res/drawable-mdpi/ic_launcher.pngbin3777 -> 0 bytes
-rw-r--r--misc/client/Piztor/res/drawable-xhdpi/ic_launcher.pngbin12516 -> 0 bytes
-rw-r--r--misc/client/Piztor/res/drawable-xxhdpi/ic_launcher.pngbin24777 -> 0 bytes
-rw-r--r--misc/client/Piztor/res/layout/activity_init.xml16
-rw-r--r--misc/client/Piztor/res/menu/init.xml9
-rw-r--r--misc/client/Piztor/res/menu/main.xml9
-rw-r--r--misc/client/Piztor/res/values-sw600dp/dimens.xml8
-rw-r--r--misc/client/Piztor/res/values-sw720dp-land/dimens.xml9
-rw-r--r--misc/client/Piztor/res/values-v11/styles.xml11
-rw-r--r--misc/client/Piztor/res/values-v14/styles.xml12
-rw-r--r--misc/client/Piztor/res/values/dimens.xml7
-rw-r--r--misc/client/Piztor/res/values/strings.xml9
-rw-r--r--misc/client/Piztor/res/values/styles.xml20
-rw-r--r--misc/client/Piztor/src/com/macaroon/piztor/ActMgr.java63
-rw-r--r--misc/client/Piztor/src/com/macaroon/piztor/AppMgr.java62
-rw-r--r--misc/client/Piztor/src/com/macaroon/piztor/InitAct.java22
-rw-r--r--misc/client/Piztor/src/com/macaroon/piztor/PiztorAct.java60
-rw-r--r--misc/client/README.rst1
-rw-r--r--misc/client/Socket-demo/Login.java6
-rw-r--r--misc/client/Socket-demo/MainActivity.java44
-rw-r--r--misc/client/Socket-demo/Myrequest.java10
-rw-r--r--misc/client/Socket-demo/Myrespond.java12
-rw-r--r--misc/client/Socket-demo/SocketClient.java107
-rw-r--r--misc/client/Socket-demo/Transam.java125
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/.AndroidManifest.xml.swpbin12288 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/.classpath9
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/.project33
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/.settings/org.eclipse.jdt.core.prefs4
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/AndroidManifest.xml26
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/AndroidGPSTracking.apkbin16993 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/AndroidManifest.xml26
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/classes.dexbin9188 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity$1.classbin1809 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity.classbin1119 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/BuildConfig.classbin355 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$1.classbin1206 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$2.classbin879 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker.classbin4488 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$attr.classbin355 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$drawable.classbin422 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$id.classbin408 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$layout.classbin409 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$string.classbin442 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R.classbin566 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/dexedLibs/annotations-5b022f4578500e25e3bfa446659bd7d8.jarbin943 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/jarlist.cache3
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-hdpi/ic_launcher.pngbin3966 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-ldpi/ic_launcher.pngbin1537 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-mdpi/ic_launcher.pngbin2200 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/bin/resources.ap_bin10818 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/default.properties2
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/BuildConfig.java6
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/R.java26
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/proguard.cfg40
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/project.properties11
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/res/drawable-hdpi/ic_launcher.pngbin10224 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/res/drawable-ldpi/ic_launcher.pngbin10224 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/res/drawable-mdpi/ic_launcher.pngbin10224 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/res/drawable-xhdpi/ic_launcher.pngbin10224 -> 0 bytes
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/res/layout/main.xml14
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/res/values/strings.xml7
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/AndroidGPSTrackingActivity.java50
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/GPSTracker.java200
-rw-r--r--misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/Tracker.java33
93 files changed, 0 insertions, 1340 deletions
diff --git a/misc/client/Piztor/.classpath b/misc/client/Piztor/.classpath
deleted file mode 100644
index 7bc01d9..0000000
--- a/misc/client/Piztor/.classpath
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="gen"/>
- <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
- <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
- <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
- <classpathentry kind="output" path="bin/classes"/>
-</classpath>
diff --git a/misc/client/Piztor/.project b/misc/client/Piztor/.project
deleted file mode 100644
index 97100ec..0000000
--- a/misc/client/Piztor/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>Piztor</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>com.android.ide.eclipse.adt.ApkBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/misc/client/Piztor/.settings/org.eclipse.jdt.core.prefs b/misc/client/Piztor/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index b080d2d..0000000
--- a/misc/client/Piztor/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/misc/client/Piztor/AndroidManifest.xml b/misc/client/Piztor/AndroidManifest.xml
deleted file mode 100644
index 63cb8ff..0000000
--- a/misc/client/Piztor/AndroidManifest.xml
+++ /dev/null
@@ -1,36 +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="@style/AppTheme" >
- <activity
- android:name="com.macaroon.piztor.Main"
- 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.InitAct"
- android:label="@string/title_activity_init" >
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
-
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
-
-</manifest>
diff --git a/misc/client/Piztor/bin/AndroidManifest.xml b/misc/client/Piztor/bin/AndroidManifest.xml
deleted file mode 100644
index 63cb8ff..0000000
--- a/misc/client/Piztor/bin/AndroidManifest.xml
+++ /dev/null
@@ -1,36 +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="@style/AppTheme" >
- <activity
- android:name="com.macaroon.piztor.Main"
- 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.InitAct"
- android:label="@string/title_activity_init" >
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
-
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
-
-</manifest>
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/ActMgr.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/ActMgr.class
deleted file mode 100644
index 1b1c693..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/ActMgr.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/ActStatus.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/ActStatus.class
deleted file mode 100644
index 1f3df48..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/ActStatus.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/AppMgr$ActivityStatus.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/AppMgr$ActivityStatus.class
deleted file mode 100644
index 496344b..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/AppMgr$ActivityStatus.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/AppMgr.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/AppMgr.class
deleted file mode 100644
index 107bcad..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/AppMgr.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/BuildConfig.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/BuildConfig.class
deleted file mode 100644
index 566eb01..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/BuildConfig.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/EmptyStatus.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/EmptyStatus.class
deleted file mode 100644
index c656689..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/EmptyStatus.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/InitAct.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/InitAct.class
deleted file mode 100644
index 6a8e04d..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/InitAct.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/PiztorAct.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/PiztorAct.class
deleted file mode 100644
index 4a3fc81..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/PiztorAct.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$attr.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$attr.class
deleted file mode 100644
index a95e1ab..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$attr.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$dimen.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$dimen.class
deleted file mode 100644
index 4bc657f..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$dimen.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$drawable.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$drawable.class
deleted file mode 100644
index 5444d98..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$drawable.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$id.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$id.class
deleted file mode 100644
index 8577179..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$id.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$layout.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$layout.class
deleted file mode 100644
index fab7556..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$layout.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$menu.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$menu.class
deleted file mode 100644
index cec6e5a..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$menu.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$string.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$string.class
deleted file mode 100644
index a78c834..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$string.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$style.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$style.class
deleted file mode 100644
index 42ddcce..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$style.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R.class
deleted file mode 100644
index d173856..0000000
--- a/misc/client/Piztor/bin/classes/com/macaroon/piztor/R.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/gen/com/macaroon/piztor/BuildConfig.java b/misc/client/Piztor/gen/com/macaroon/piztor/BuildConfig.java
deleted file mode 100644
index 833e650..0000000
--- a/misc/client/Piztor/gen/com/macaroon/piztor/BuildConfig.java
+++ /dev/null
@@ -1,6 +0,0 @@
-/** Automatically generated file. DO NOT MODIFY */
-package com.macaroon.piztor;
-
-public final class BuildConfig {
- public final static boolean DEBUG = true;
-} \ No newline at end of file
diff --git a/misc/client/Piztor/gen/com/macaroon/piztor/R.java b/misc/client/Piztor/gen/com/macaroon/piztor/R.java
deleted file mode 100644
index 9821c7f..0000000
--- a/misc/client/Piztor/gen/com/macaroon/piztor/R.java
+++ /dev/null
@@ -1,70 +0,0 @@
-/* AUTO-GENERATED FILE. DO NOT MODIFY.
- *
- * This class was automatically generated by the
- * aapt tool from the resource data it found. It
- * should not be modified by hand.
- */
-
-package com.macaroon.piztor;
-
-public final class R {
- public static final class attr {
- }
- public static final class dimen {
- /** Default screen margins, per the Android Design guidelines.
-
- Customize dimensions originally defined in res/values/dimens.xml (such as
- screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
-
- */
- public static final int activity_horizontal_margin=0x7f040000;
- public static final int activity_vertical_margin=0x7f040001;
- }
- public static final class drawable {
- public static final int ic_launcher=0x7f020000;
- }
- public static final class id {
- public static final int action_settings=0x7f080000;
- }
- public static final class layout {
- public static final int activity_init=0x7f030000;
- }
- public static final class menu {
- public static final int init=0x7f070000;
- public static final int main=0x7f070001;
- }
- public static final class string {
- public static final int action_settings=0x7f050001;
- public static final int app_name=0x7f050000;
- public static final int hello_world=0x7f050002;
- public static final int title_activity_init=0x7f050003;
- }
- public static final class style {
- /**
- Base application theme, dependent on API level. This theme is replaced
- by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-
-
- Theme customizations available in newer API levels can go in
- res/values-vXX/styles.xml, while customizations related to
- backward-compatibility can go here.
-
-
- Base application theme for API 11+. This theme completely replaces
- AppBaseTheme from res/values/styles.xml on API 11+ devices.
-
- API 11 theme customizations can go here.
-
- Base application theme for API 14+. This theme completely replaces
- AppBaseTheme from BOTH res/values/styles.xml and
- res/values-v11/styles.xml on API 14+ devices.
-
- API 14 theme customizations can go here.
- */
- public static final int AppBaseTheme=0x7f060000;
- /** Application theme.
- All customizations that are NOT specific to a particular API-level can go here.
- */
- public static final int AppTheme=0x7f060001;
- }
-}
diff --git a/misc/client/Piztor/ic_launcher-web.png b/misc/client/Piztor/ic_launcher-web.png
deleted file mode 100644
index a18cbb4..0000000
--- a/misc/client/Piztor/ic_launcher-web.png
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/libs/android-support-v4.jar b/misc/client/Piztor/libs/android-support-v4.jar
deleted file mode 100644
index cf12d28..0000000
--- a/misc/client/Piztor/libs/android-support-v4.jar
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/proguard-project.txt b/misc/client/Piztor/proguard-project.txt
deleted file mode 100644
index f2fe155..0000000
--- a/misc/client/Piztor/proguard-project.txt
+++ /dev/null
@@ -1,20 +0,0 @@
-# To enable ProGuard in your project, edit project.properties
-# to define the proguard.config property as described in that file.
-#
-# Add project specific ProGuard rules here.
-# By default, the flags in this file are appended to flags specified
-# in ${sdk.dir}/tools/proguard/proguard-android.txt
-# You can edit the include path and order by changing the ProGuard
-# include property in project.properties.
-#
-# For more details, see
-# http://developer.android.com/guide/developing/tools/proguard.html
-
-# Add any project specific keep options here:
-
-# If your project uses WebView with JS, uncomment the following
-# and specify the fully qualified class name to the JavaScript interface
-# class:
-#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
-# public *;
-#}
diff --git a/misc/client/Piztor/project.properties b/misc/client/Piztor/project.properties
deleted file mode 100644
index ce39f2d..0000000
--- a/misc/client/Piztor/project.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system edit
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-#
-# To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
-#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
-
-# Project target.
-target=android-18
diff --git a/misc/client/Piztor/res/drawable-hdpi/ic_launcher.png b/misc/client/Piztor/res/drawable-hdpi/ic_launcher.png
deleted file mode 100644
index 288b665..0000000
--- a/misc/client/Piztor/res/drawable-hdpi/ic_launcher.png
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/res/drawable-mdpi/ic_launcher.png b/misc/client/Piztor/res/drawable-mdpi/ic_launcher.png
deleted file mode 100644
index 6ae570b..0000000
--- a/misc/client/Piztor/res/drawable-mdpi/ic_launcher.png
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/res/drawable-xhdpi/ic_launcher.png b/misc/client/Piztor/res/drawable-xhdpi/ic_launcher.png
deleted file mode 100644
index d4fb7cd..0000000
--- a/misc/client/Piztor/res/drawable-xhdpi/ic_launcher.png
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/res/drawable-xxhdpi/ic_launcher.png b/misc/client/Piztor/res/drawable-xxhdpi/ic_launcher.png
deleted file mode 100644
index 85a6081..0000000
--- a/misc/client/Piztor/res/drawable-xxhdpi/ic_launcher.png
+++ /dev/null
Binary files differ
diff --git a/misc/client/Piztor/res/layout/activity_init.xml b/misc/client/Piztor/res/layout/activity_init.xml
deleted file mode 100644
index 43e6253..0000000
--- a/misc/client/Piztor/res/layout/activity_init.xml
+++ /dev/null
@@ -1,16 +0,0 @@
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:paddingBottom="@dimen/activity_vertical_margin"
- android:paddingLeft="@dimen/activity_horizontal_margin"
- android:paddingRight="@dimen/activity_horizontal_margin"
- android:paddingTop="@dimen/activity_vertical_margin"
- tools:context=".InitAct" >
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="@string/hello_world" />
-
-</RelativeLayout>
diff --git a/misc/client/Piztor/res/menu/init.xml b/misc/client/Piztor/res/menu/init.xml
deleted file mode 100644
index c002028..0000000
--- a/misc/client/Piztor/res/menu/init.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<menu xmlns:android="http://schemas.android.com/apk/res/android" >
-
- <item
- android:id="@+id/action_settings"
- android:orderInCategory="100"
- android:showAsAction="never"
- android:title="@string/action_settings"/>
-
-</menu>
diff --git a/misc/client/Piztor/res/menu/main.xml b/misc/client/Piztor/res/menu/main.xml
deleted file mode 100644
index c002028..0000000
--- a/misc/client/Piztor/res/menu/main.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<menu xmlns:android="http://schemas.android.com/apk/res/android" >
-
- <item
- android:id="@+id/action_settings"
- android:orderInCategory="100"
- android:showAsAction="never"
- android:title="@string/action_settings"/>
-
-</menu>
diff --git a/misc/client/Piztor/res/values-sw600dp/dimens.xml b/misc/client/Piztor/res/values-sw600dp/dimens.xml
deleted file mode 100644
index 44f01db..0000000
--- a/misc/client/Piztor/res/values-sw600dp/dimens.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<resources>
-
- <!--
- Customize dimensions originally defined in res/values/dimens.xml (such as
- screen margins) for sw600dp devices (e.g. 7" tablets) here.
- -->
-
-</resources>
diff --git a/misc/client/Piztor/res/values-sw720dp-land/dimens.xml b/misc/client/Piztor/res/values-sw720dp-land/dimens.xml
deleted file mode 100644
index 61e3fa8..0000000
--- a/misc/client/Piztor/res/values-sw720dp-land/dimens.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<resources>
-
- <!--
- Customize dimensions originally defined in res/values/dimens.xml (such as
- screen margins) for sw720dp devices (e.g. 10" tablets) in landscape here.
- -->
- <dimen name="activity_horizontal_margin">128dp</dimen>
-
-</resources>
diff --git a/misc/client/Piztor/res/values-v11/styles.xml b/misc/client/Piztor/res/values-v11/styles.xml
deleted file mode 100644
index 3c02242..0000000
--- a/misc/client/Piztor/res/values-v11/styles.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<resources>
-
- <!--
- Base application theme for API 11+. This theme completely replaces
- AppBaseTheme from res/values/styles.xml on API 11+ devices.
- -->
- <style name="AppBaseTheme" parent="android:Theme.Holo.Light">
- <!-- API 11 theme customizations can go here. -->
- </style>
-
-</resources>
diff --git a/misc/client/Piztor/res/values-v14/styles.xml b/misc/client/Piztor/res/values-v14/styles.xml
deleted file mode 100644
index a91fd03..0000000
--- a/misc/client/Piztor/res/values-v14/styles.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<resources>
-
- <!--
- Base application theme for API 14+. This theme completely replaces
- AppBaseTheme from BOTH res/values/styles.xml and
- res/values-v11/styles.xml on API 14+ devices.
- -->
- <style name="AppBaseTheme" parent="android:Theme.Holo.Light.DarkActionBar">
- <!-- API 14 theme customizations can go here. -->
- </style>
-
-</resources>
diff --git a/misc/client/Piztor/res/values/dimens.xml b/misc/client/Piztor/res/values/dimens.xml
deleted file mode 100644
index 55c1e59..0000000
--- a/misc/client/Piztor/res/values/dimens.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<resources>
-
- <!-- Default screen margins, per the Android Design guidelines. -->
- <dimen name="activity_horizontal_margin">16dp</dimen>
- <dimen name="activity_vertical_margin">16dp</dimen>
-
-</resources>
diff --git a/misc/client/Piztor/res/values/strings.xml b/misc/client/Piztor/res/values/strings.xml
deleted file mode 100644
index 8e76dc0..0000000
--- a/misc/client/Piztor/res/values/strings.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-
- <string name="app_name">Piztor</string>
- <string name="action_settings">Settings</string>
- <string name="hello_world">Hello world!</string>
- <string name="title_activity_init">InitAct</string>
-
-</resources>
diff --git a/misc/client/Piztor/res/values/styles.xml b/misc/client/Piztor/res/values/styles.xml
deleted file mode 100644
index 6ce89c7..0000000
--- a/misc/client/Piztor/res/values/styles.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<resources>
-
- <!--
- Base application theme, dependent on API level. This theme is replaced
- by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
- -->
- <style name="AppBaseTheme" parent="android:Theme.Light">
- <!--
- Theme customizations available in newer API levels can go in
- res/values-vXX/styles.xml, while customizations related to
- backward-compatibility can go here.
- -->
- </style>
-
- <!-- Application theme. -->
- <style name="AppTheme" parent="AppBaseTheme">
- <!-- All customizations that are NOT specific to a particular API-level can go here. -->
- </style>
-
-</resources>
diff --git a/misc/client/Piztor/src/com/macaroon/piztor/ActMgr.java b/misc/client/Piztor/src/com/macaroon/piztor/ActMgr.java
deleted file mode 100644
index 81fa6f2..0000000
--- a/misc/client/Piztor/src/com/macaroon/piztor/ActMgr.java
+++ /dev/null
@@ -1,63 +0,0 @@
-package com.macaroon.piztor;
-
-import java.util.*;
-
-import android.annotation.SuppressLint;
-
-@SuppressLint("UseSparseArrays")
-public class ActMgr {
- // event
- PiztorAct act;
- ActStatus nowStatus;
- HashMap<ActStatus, HashMap<Integer, ActStatus>> mp;
-
- ActMgr(PiztorAct act, ActStatus nowStatus, ActStatus[] r) {
- this.act = act;
- this.nowStatus = nowStatus;
- mp = new HashMap<ActStatus, HashMap<Integer, ActStatus>>();
- for (int i = 0; i < r.length; i++) {
- mp.put(r[i], new HashMap<Integer, ActStatus>());
- }
- }
-
- void trigger(int event) {
- for (Integer i : mp.get(nowStatus).keySet())
- System.out.println(i);
- if (mp.get(nowStatus).containsKey(event)) {
- nowStatus.leave(event);
- nowStatus = mp.get(nowStatus).get(event);
- nowStatus.enter(event);
- } else if (AppMgr.mp.get(act.getClass()).containsKey(event)) {
- AppMgr.trigger(event);
- }
- }
-
- void add(ActStatus a, int event, ActStatus b) {
- if (mp.containsKey(a)) {
- HashMap<Integer, ActStatus> h = mp.get(a);
- h.put(event, b);
- mp.put(a, h);
- } else {
- HashMap<Integer, ActStatus> h = new HashMap<Integer, ActStatus>();
- h.put(event, b);
- mp.put(a, h);
- }
- }
-}
-
-abstract class ActStatus {
- abstract void enter(int e);
-
- abstract void leave(int e);
-}
-
-class EmptyStatus extends ActStatus {
- @Override
- void enter(int e) {
- }
-
- @Override
- void leave(int e) {
- }
-
-}
diff --git a/misc/client/Piztor/src/com/macaroon/piztor/AppMgr.java b/misc/client/Piztor/src/com/macaroon/piztor/AppMgr.java
deleted file mode 100644
index 9259786..0000000
--- a/misc/client/Piztor/src/com/macaroon/piztor/AppMgr.java
+++ /dev/null
@@ -1,62 +0,0 @@
-package com.macaroon.piztor;
-
-import java.util.HashMap;
-
-import android.annotation.SuppressLint;
-import android.content.Intent;
-
-@SuppressLint("UseSparseArrays")
-public class AppMgr {
- // Status
- public enum ActivityStatus{
- create, start, resume, restart, stop, pause, destroy
- }
- static ActivityStatus status;
- static PiztorAct nowAct;
-
- static HashMap<Class<?>, HashMap<Integer, Class<?>>> mp;
-
- static void setStatus(ActivityStatus st) {
- status = st;
- }
-
- static void trigger(int event) {
-
- Intent i = new Intent();
- i.setClass(nowAct, mp.get(nowAct.getClass()).get(event));
- nowAct.startActivity(i);
- }
-
- static void add(Class<?> a, Integer event, Class<?> b) {
- if (mp.containsKey(a))
- mp.get(a).put(event, b);
- else {
- HashMap<Integer, Class<?>> h = new HashMap<Integer, Class<?>>();
- h.put(event, b);
- mp.put(a, h);
- }
- }
-
- static void addTransition(Class<?> a, int i, Class<?> b) {
- if (mp.containsKey(a)) {
- HashMap<Integer, Class<?>> h = mp.get(a);
- h.put(i, b);
- mp.put(a, h);
- } else {
- HashMap<Integer, Class<?>> h = new HashMap<Integer, Class<?>>();
- h.put(i, b);
- mp.put(a, h);
- }
- }
-
- static void addStatus(Class<?> a) {
- mp.put(a, new HashMap<Integer, Class<?>>());
- }
-
- static void init() {
- mp = new HashMap<Class<?>, HashMap<Integer, Class<?>>>();
- addStatus(InitAct.class);
-
- }
-
-}
diff --git a/misc/client/Piztor/src/com/macaroon/piztor/InitAct.java b/misc/client/Piztor/src/com/macaroon/piztor/InitAct.java
deleted file mode 100644
index 1ce492c..0000000
--- a/misc/client/Piztor/src/com/macaroon/piztor/InitAct.java
+++ /dev/null
@@ -1,22 +0,0 @@
-package com.macaroon.piztor;
-
-import android.os.Bundle;
-import android.app.Activity;
-import android.view.Menu;
-
-public class InitAct extends Activity {
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_init);
- }
-
- @Override
- public boolean onCreateOptionsMenu(Menu menu) {
- // Inflate the menu; this adds items to the action bar if it is present.
- getMenuInflater().inflate(R.menu.init, menu);
- return true;
- }
-
-}
diff --git a/misc/client/Piztor/src/com/macaroon/piztor/PiztorAct.java b/misc/client/Piztor/src/com/macaroon/piztor/PiztorAct.java
deleted file mode 100644
index ad12b17..0000000
--- a/misc/client/Piztor/src/com/macaroon/piztor/PiztorAct.java
+++ /dev/null
@@ -1,60 +0,0 @@
-package com.macaroon.piztor;
-
-import android.app.Activity;
-import android.os.Bundle;
-
-public class PiztorAct extends Activity {
- String id;
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- System.out.println(id + " on create");
- AppMgr.setStatus(AppMgr.ActivityStatus.create);
- AppMgr.nowAct = this;
- }
-
- @Override
- protected void onStart() {
- super.onStart();
- System.out.println(id + " on start");
- AppMgr.setStatus(AppMgr.ActivityStatus.start);
- AppMgr.nowAct = this;
- }
-
- @Override
- protected void onStop() {
- super.onStop();
- System.out.println(id + " on stop");
- AppMgr.setStatus(AppMgr.ActivityStatus.stop);
- }
-
- @Override
- protected void onResume() {
- super.onResume();
- System.out.println(id + " on resume");
- AppMgr.setStatus(AppMgr.ActivityStatus.resume);
- AppMgr.nowAct = this;
- }
-
- @Override
- protected void onPause() {
- super.onPause();
- System.out.println(id + " on pause");
- AppMgr.setStatus(AppMgr.ActivityStatus.pause);
- }
-
- @Override
- protected void onRestart() {
- super.onRestart();
- System.out.println(id + " on restart");
- AppMgr.setStatus(AppMgr.ActivityStatus.restart);
- }
-
- @Override
- protected void onDestroy() {
- super.onDestroy();
- System.out.println(id + " on destroy");
- AppMgr.setStatus(AppMgr.ActivityStatus.destroy);
- }
-
-}
diff --git a/misc/client/README.rst b/misc/client/README.rst
deleted file mode 100644
index ef377cc..0000000
--- a/misc/client/README.rst
+++ /dev/null
@@ -1 +0,0 @@
-Here is the folder of android app implementation
diff --git a/misc/client/Socket-demo/Login.java b/misc/client/Socket-demo/Login.java
deleted file mode 100644
index 2dd386c..0000000
--- a/misc/client/Socket-demo/Login.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package com.example.test;
-
-public class Login{
- void success(int t){}
- void failed(){}
-} \ No newline at end of file
diff --git a/misc/client/Socket-demo/MainActivity.java b/misc/client/Socket-demo/MainActivity.java
deleted file mode 100644
index ab2ef0c..0000000
--- a/misc/client/Socket-demo/MainActivity.java
+++ /dev/null
@@ -1,44 +0,0 @@
-package com.example.test;
-
-import android.app.Activity;
-import android.os.Bundle;
-import android.view.Menu;
-import android.view.View;
-import android.widget.TextView;
-
-public class MainActivity extends Activity {
-
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.activity_main);
- TextView textview = (TextView)findViewById(R.id.textView1);
- textview.setText("Server Created!");
- }
-
- @Override
- public boolean onCreateOptionsMenu(Menu menu) {
- // Inflate the menu; this adds items to the action bar if it is present.
- getMenuInflater().inflate(R.menu.main, menu);
- return true;
- }
-
-
- public void sendMessage(View view) {
-
- }
-
-
-
-
-
-
-
-
-}
-
-
-
-
-
-
diff --git a/misc/client/Socket-demo/Myrequest.java b/misc/client/Socket-demo/Myrequest.java
deleted file mode 100644
index e5bfce2..0000000
--- a/misc/client/Socket-demo/Myrequest.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package com.example.test;
-
-import java.util.Vector;
-
-public class Myrequest{
- public Vector<Object> contain;
- Myrequest(){
- contain = new Vector<Object>();
- }
-} \ No newline at end of file
diff --git a/misc/client/Socket-demo/Myrespond.java b/misc/client/Socket-demo/Myrespond.java
deleted file mode 100644
index ea6ef3b..0000000
--- a/misc/client/Socket-demo/Myrespond.java
+++ /dev/null
@@ -1,12 +0,0 @@
-package com.example.test;
-
-import java.util.Vector;
-
-public class Myrespond{
- public Vector<Object> contain;
- public String wrong;
- Myrespond(){
- wrong = null;
- contain = new Vector<Object>();
- }
-} \ No newline at end of file
diff --git a/misc/client/Socket-demo/SocketClient.java b/misc/client/Socket-demo/SocketClient.java
deleted file mode 100644
index df42484..0000000
--- a/misc/client/Socket-demo/SocketClient.java
+++ /dev/null
@@ -1,107 +0,0 @@
-package com.example.test;
-
-
-import java.io.DataInputStream;
-import java.io.DataOutputStream;
-import java.io.IOException;
-import java.net.Socket;
-import java.net.UnknownHostException;
-
-public class SocketClient {
-
- static Socket client;
-
- public SocketClient(String site, int port)throws UnknownHostException,IOException{
- try{
- client = new Socket(site,port);
- }catch (UnknownHostException e){
- throw e;
- }catch (IOException e){
- throw e;
- }
- }
-
- public Myrespond sendMsg(Myrequest req)throws IOException{
- try{
- DataOutputStream out = new DataOutputStream(client.getOutputStream());
- int tmp = (Integer) req.contain.get(0);
- switch(tmp){
- case 0:
- String id = (String) req.contain.get(1);
- String pass = (String) req.contain.get(2);
- out.writeUTF(id);
- out.writeUTF(pass);
- break;
- case 1:
- int tk1 = (Integer) req.contain.get(1);
- int acc = (Integer) req.contain.get(2);
- String mess = (String) req.contain.get(3);
- out.writeInt(tk1);
- out.writeInt(acc);
- out.writeUTF(mess);
- break;
- case 2:
- int tk2 = (Integer) req.contain.get(1);
- double slot = (Double) req.contain.get(2);
- double slat = (Double) req.contain.get(3);
- out.writeInt(tk2);
- out.writeDouble(slot);
- out.writeDouble(slat);
- break;
- case 3:
- int tk3 = (Integer) req.contain.get(1);
- int gid = (Integer) req.contain.get(2);
- out.writeInt(tk3);
- out.writeInt(gid);
- break;
- }
- out.flush();
- client.shutdownOutput();
- DataInputStream in = new DataInputStream(client.getInputStream());
- int type = in.readUnsignedByte();
- Myrespond r = new Myrespond();
- switch(type){
- case 0:
- int id = in.readInt();
- int status = in.readUnsignedByte();
- r.contain.add(0);
- r.contain.add(id);
- r.contain.add(status);
- break;
- case 1:
- r.contain.add(1);
- //reserved
- break;
- case 2:
- r.contain.add(2);
- //reserved
- break;
- case 3:
- int n = in.readInt();
- r.contain.add(3);
- r.contain.add(n);
- for(int i=1;i<=n;i++)
- {
- int tid = in.readInt();
- double lot = in.readDouble();
- double lat = in.readDouble();
- r.contain.add(tid);
- r.contain.add(lot);
- r.contain.add(lat);
- }
- break;
- }
- return r;
- }catch(IOException e){
- throw e;
- }
- }
- public void closeSocket(){
- try{
- client.close();
- }catch(IOException e){
- e.printStackTrace();
- }
- }
-
-}
diff --git a/misc/client/Socket-demo/Transam.java b/misc/client/Socket-demo/Transam.java
deleted file mode 100644
index b5e2381..0000000
--- a/misc/client/Socket-demo/Transam.java
+++ /dev/null
@@ -1,125 +0,0 @@
-package com.example.test;
-
-import java.io.IOException;
-import java.net.UnknownHostException;
-import java.util.Timer;
-import java.util.TimerTask;
-
-import android.annotation.SuppressLint;
-import android.os.Handler;
-import android.os.Message;
-
-public class Transam implements Runnable {
- public Timer timer;
- public boolean flag = true;
- public boolean reqlog = false;
- public int cnt = 4;
- public int port;
- public String ip;
- Thread thread;
- Myrequest req;
- Myrespond res;
- Controller core;
- Login log;
-
-
- Transam(String i,int p,Myrequest r,Login l){
- port = p;
- ip = i;
- req = r;
- log = l;
- reqlog = true;
- }
-
- Transam(String i,int p,Myrequest r,Controller c){
- port = p;
- ip = i;
- req = r;
- core = c;
- }
-
- public void run() {
- final thd t = new thd();
- flag = false;
- thread = new Thread(t);
- cnt = 4;
- thread.start();
- timer = new Timer();
- TimerTask task = new Timertk();
- timer.schedule(task,2000,2000);
- }
-
- class thd implements Runnable {
- @Override
- public void run() {
- try{
- SocketClient client = new SocketClient(ip,port);
- res = client.sendMsg(req);
- if(!reqlog){
- core.recieveInfo(res);
- }
- else{
- if((Integer) res.contain.get(2)==0){
- int t = (Integer) res.contain.get(1);
- log.success(t);
- }
- else{
- log.failed();
- }
- }
- Message msg = new Message();
- msg.what = 1;
- handler.sendMessage(msg);
- client.closeSocket();
- }catch (UnknownHostException e){
- }catch (IOException e){
- }
-
- }
- }
-
- @SuppressLint("HandlerLeak")
- Handler handler = new Handler(){
- public void handleMessage(Message msg) {
- switch (msg.what) {
- case 1:
- flag = true;
- break;
- case 2:
- if(!reqlog){
- res = new Myrespond();
- res.wrong = msg.obj.toString();
- core.recieveInfo(res);
- }
- else{
- log.failed();
- }
- break;
- case 3:
- final thd t = new thd();
- thread = new Thread(t);
- thread.start();
- break;
- }
- super.handleMessage(msg);
- }
- };
-
- class Timertk extends TimerTask {
- public void run() {
- if(flag==false&&cnt>0){
- cnt--;
- }
- else if(cnt==0) {
- Message msg = new Message();
- msg.obj = "connecting failed";
- msg.what = 2;
- handler.sendMessage(msg);
- timer.cancel();
- }
- else if(flag==true){
- timer.cancel();
- }
- }
- };
-} \ No newline at end of file
diff --git a/misc/client/gps-demo/AndroidGPSTracking/.AndroidManifest.xml.swp b/misc/client/gps-demo/AndroidGPSTracking/.AndroidManifest.xml.swp
deleted file mode 100644
index d03b360..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/.AndroidManifest.xml.swp
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/.classpath b/misc/client/gps-demo/AndroidGPSTracking/.classpath
deleted file mode 100644
index 5176974..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/.classpath
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<classpath>
- <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
- <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
- <classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
- <classpathentry kind="src" path="src"/>
- <classpathentry kind="src" path="gen"/>
- <classpathentry kind="output" path="bin/classes"/>
-</classpath>
diff --git a/misc/client/gps-demo/AndroidGPSTracking/.project b/misc/client/gps-demo/AndroidGPSTracking/.project
deleted file mode 100644
index a080853..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/.project
+++ /dev/null
@@ -1,33 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>AndroidGPSTracking</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>org.eclipse.jdt.core.javabuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- <buildCommand>
- <name>com.android.ide.eclipse.adt.ApkBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
- <nature>org.eclipse.jdt.core.javanature</nature>
- </natures>
-</projectDescription>
diff --git a/misc/client/gps-demo/AndroidGPSTracking/.settings/org.eclipse.jdt.core.prefs b/misc/client/gps-demo/AndroidGPSTracking/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index b080d2d..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,4 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/misc/client/gps-demo/AndroidGPSTracking/AndroidManifest.xml b/misc/client/gps-demo/AndroidGPSTracking/AndroidManifest.xml
deleted file mode 100644
index 137894c..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/AndroidManifest.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.example.gpstracking"
- android:versionCode="1"
- android:versionName="1.0" >
-
- <uses-sdk android:minSdkVersion="8" />
-
- <application
- android:icon="@drawable/ic_launcher"
- android:label="@string/app_name" >
- <activity
- android:name=".AndroidGPSTrackingActivity"
- android:label="@string/app_name" >
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
-
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
-
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
- <uses-permission android:name="android.permission.INTERNET" />
-
-</manifest> \ No newline at end of file
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/AndroidGPSTracking.apk b/misc/client/gps-demo/AndroidGPSTracking/bin/AndroidGPSTracking.apk
deleted file mode 100644
index 985304a..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/AndroidGPSTracking.apk
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/AndroidManifest.xml b/misc/client/gps-demo/AndroidGPSTracking/bin/AndroidManifest.xml
deleted file mode 100644
index 137894c..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/AndroidManifest.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns:android="http://schemas.android.com/apk/res/android"
- package="com.example.gpstracking"
- android:versionCode="1"
- android:versionName="1.0" >
-
- <uses-sdk android:minSdkVersion="8" />
-
- <application
- android:icon="@drawable/ic_launcher"
- android:label="@string/app_name" >
- <activity
- android:name=".AndroidGPSTrackingActivity"
- android:label="@string/app_name" >
- <intent-filter>
- <action android:name="android.intent.action.MAIN" />
-
- <category android:name="android.intent.category.LAUNCHER" />
- </intent-filter>
- </activity>
- </application>
-
- <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
- <uses-permission android:name="android.permission.INTERNET" />
-
-</manifest> \ No newline at end of file
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/classes.dex b/misc/client/gps-demo/AndroidGPSTracking/bin/classes.dex
deleted file mode 100644
index 1a8d494..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/classes.dex
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity$1.class b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity$1.class
deleted file mode 100644
index 3367336..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity$1.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity.class b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity.class
deleted file mode 100644
index 7df00e1..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/BuildConfig.class b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/BuildConfig.class
deleted file mode 100644
index 15960aa..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/BuildConfig.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$1.class b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$1.class
deleted file mode 100644
index 8e2ea2b..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$1.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$2.class b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$2.class
deleted file mode 100644
index 572f305..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$2.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker.class b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker.class
deleted file mode 100644
index 6f6bd93..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$attr.class b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$attr.class
deleted file mode 100644
index 1dbe417..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$attr.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$drawable.class b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$drawable.class
deleted file mode 100644
index f46f86d..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$drawable.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$id.class b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$id.class
deleted file mode 100644
index 7d48158..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$id.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$layout.class b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$layout.class
deleted file mode 100644
index 08f0ade..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$layout.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$string.class b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$string.class
deleted file mode 100644
index 7c72195..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$string.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R.class b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R.class
deleted file mode 100644
index 7f0475e..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R.class
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/dexedLibs/annotations-5b022f4578500e25e3bfa446659bd7d8.jar b/misc/client/gps-demo/AndroidGPSTracking/bin/dexedLibs/annotations-5b022f4578500e25e3bfa446659bd7d8.jar
deleted file mode 100644
index 61505d5..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/dexedLibs/annotations-5b022f4578500e25e3bfa446659bd7d8.jar
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/jarlist.cache b/misc/client/gps-demo/AndroidGPSTracking/bin/jarlist.cache
deleted file mode 100644
index 0565465..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/jarlist.cache
+++ /dev/null
@@ -1,3 +0,0 @@
-# cache for current jar dependency. DO NOT EDIT.
-# format is <lastModified> <length> <SHA-1> <path>
-# Encoding is UTF-8
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-hdpi/ic_launcher.png b/misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-hdpi/ic_launcher.png
deleted file mode 100644
index 882eb14..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-hdpi/ic_launcher.png
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-ldpi/ic_launcher.png b/misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-ldpi/ic_launcher.png
deleted file mode 100644
index 18689f6..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-ldpi/ic_launcher.png
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-mdpi/ic_launcher.png b/misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-mdpi/ic_launcher.png
deleted file mode 100644
index 02e96b9..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-mdpi/ic_launcher.png
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/resources.ap_ b/misc/client/gps-demo/AndroidGPSTracking/bin/resources.ap_
deleted file mode 100644
index 8c035b7..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/bin/resources.ap_
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/default.properties b/misc/client/gps-demo/AndroidGPSTracking/default.properties
deleted file mode 100644
index 32299c2..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/default.properties
+++ /dev/null
@@ -1,2 +0,0 @@
-# Project target.
-target=android-8
diff --git a/misc/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/BuildConfig.java b/misc/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/BuildConfig.java
deleted file mode 100644
index c164cb3..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/BuildConfig.java
+++ /dev/null
@@ -1,6 +0,0 @@
-/** Automatically generated file. DO NOT MODIFY */
-package com.example.gpstracking;
-
-public final class BuildConfig {
- public final static boolean DEBUG = true;
-} \ No newline at end of file
diff --git a/misc/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/R.java b/misc/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/R.java
deleted file mode 100644
index c747309..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/R.java
+++ /dev/null
@@ -1,26 +0,0 @@
-/* AUTO-GENERATED FILE. DO NOT MODIFY.
- *
- * This class was automatically generated by the
- * aapt tool from the resource data it found. It
- * should not be modified by hand.
- */
-
-package com.example.gpstracking;
-
-public final class R {
- public static final class attr {
- }
- public static final class drawable {
- public static final int ic_launcher=0x7f020000;
- }
- public static final class id {
- public static final int btnShowLocation=0x7f050000;
- }
- public static final class layout {
- public static final int main=0x7f030000;
- }
- public static final class string {
- public static final int app_name=0x7f040001;
- public static final int hello=0x7f040000;
- }
-}
diff --git a/misc/client/gps-demo/AndroidGPSTracking/proguard.cfg b/misc/client/gps-demo/AndroidGPSTracking/proguard.cfg
deleted file mode 100644
index b1cdf17..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/proguard.cfg
+++ /dev/null
@@ -1,40 +0,0 @@
--optimizationpasses 5
--dontusemixedcaseclassnames
--dontskipnonpubliclibraryclasses
--dontpreverify
--verbose
--optimizations !code/simplification/arithmetic,!field/*,!class/merging/*
-
--keep public class * extends android.app.Activity
--keep public class * extends android.app.Application
--keep public class * extends android.app.Service
--keep public class * extends android.content.BroadcastReceiver
--keep public class * extends android.content.ContentProvider
--keep public class * extends android.app.backup.BackupAgentHelper
--keep public class * extends android.preference.Preference
--keep public class com.android.vending.licensing.ILicensingService
-
--keepclasseswithmembernames class * {
- native <methods>;
-}
-
--keepclasseswithmembers class * {
- public <init>(android.content.Context, android.util.AttributeSet);
-}
-
--keepclasseswithmembers class * {
- public <init>(android.content.Context, android.util.AttributeSet, int);
-}
-
--keepclassmembers class * extends android.app.Activity {
- public void *(android.view.View);
-}
-
--keepclassmembers enum * {
- public static **[] values();
- public static ** valueOf(java.lang.String);
-}
-
--keep class * implements android.os.Parcelable {
- public static final android.os.Parcelable$Creator *;
-}
diff --git a/misc/client/gps-demo/AndroidGPSTracking/project.properties b/misc/client/gps-demo/AndroidGPSTracking/project.properties
deleted file mode 100644
index ea89160..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/project.properties
+++ /dev/null
@@ -1,11 +0,0 @@
-# This file is automatically generated by Android Tools.
-# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
-#
-# This file must be checked in Version Control Systems.
-#
-# To customize properties used by the Ant build system use,
-# "ant.properties", and override values to adapt the script to your
-# project structure.
-
-# Project target.
-target=android-8
diff --git a/misc/client/gps-demo/AndroidGPSTracking/res/drawable-hdpi/ic_launcher.png b/misc/client/gps-demo/AndroidGPSTracking/res/drawable-hdpi/ic_launcher.png
deleted file mode 100644
index efc8f0a..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/res/drawable-hdpi/ic_launcher.png
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/res/drawable-ldpi/ic_launcher.png b/misc/client/gps-demo/AndroidGPSTracking/res/drawable-ldpi/ic_launcher.png
deleted file mode 100644
index efc8f0a..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/res/drawable-ldpi/ic_launcher.png
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/res/drawable-mdpi/ic_launcher.png b/misc/client/gps-demo/AndroidGPSTracking/res/drawable-mdpi/ic_launcher.png
deleted file mode 100644
index efc8f0a..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/res/drawable-mdpi/ic_launcher.png
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/res/drawable-xhdpi/ic_launcher.png b/misc/client/gps-demo/AndroidGPSTracking/res/drawable-xhdpi/ic_launcher.png
deleted file mode 100644
index efc8f0a..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/res/drawable-xhdpi/ic_launcher.png
+++ /dev/null
Binary files differ
diff --git a/misc/client/gps-demo/AndroidGPSTracking/res/layout/main.xml b/misc/client/gps-demo/AndroidGPSTracking/res/layout/main.xml
deleted file mode 100644
index 430efa2..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/res/layout/main.xml
+++ /dev/null
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent"
- android:orientation="vertical" >
-
- <Button android:id="@+id/btnShowLocation"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:text="Show Location"
- android:layout_centerVertical="true"
- android:layout_centerHorizontal="true"/>
-
-</RelativeLayout> \ No newline at end of file
diff --git a/misc/client/gps-demo/AndroidGPSTracking/res/values/strings.xml b/misc/client/gps-demo/AndroidGPSTracking/res/values/strings.xml
deleted file mode 100644
index 6c854c3..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/res/values/strings.xml
+++ /dev/null
@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<resources>
-
- <string name="hello">Hello World, AndroidGPSTrackingActivity!</string>
- <string name="app_name">AndroidGPSTracking</string>
-
-</resources> \ No newline at end of file
diff --git a/misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/AndroidGPSTrackingActivity.java b/misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/AndroidGPSTrackingActivity.java
deleted file mode 100644
index cdc1413..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/AndroidGPSTrackingActivity.java
+++ /dev/null
@@ -1,50 +0,0 @@
-package com.example.gpstracking;
-
-import android.app.Activity;
-import android.os.Bundle;
-import android.view.View;
-import android.widget.Button;
-import android.widget.Toast;
-
-public class AndroidGPSTrackingActivity extends Activity {
-
- Button btnShowLocation;
-
- // GPSTracker class
- GPSTracker gps;
-
- @Override
- public void onCreate(Bundle savedInstanceState) {
-
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
-
- btnShowLocation = (Button) findViewById(R.id.btnShowLocation);
-
- // show location button click event
- btnShowLocation.setOnClickListener(new View.OnClickListener() {
-
- @Override
- public void onClick(View arg0) {
- // create class object
- gps = new GPSTracker(AndroidGPSTrackingActivity.this);
-
- // check if GPS enabled
- if(gps.canGetLocation()){
-
- double latitude = gps.getLatitude();
- double longitude = gps.getLongitude();
-
- Toast.makeText(getApplicationContext(), "Your Location is - \nLat: " + latitude + "\nLong: " + longitude, Toast.LENGTH_LONG).show();
- }else{
- // can't get location
- // GPS or Network is not enabled
- // Ask user to enable GPS/network in settings
- gps.showSettingsAlert();
- }
-
- }
- });
- }
-
-} \ No newline at end of file
diff --git a/misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/GPSTracker.java b/misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/GPSTracker.java
deleted file mode 100644
index f1e77ad..0000000
--- a/misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/GPSTracker.java
+++ /dev/null
@@ -1,200 +0,0 @@
-package com.example.gpstracking;
-
-import android.app.AlertDialog;
-import android.app.Service;
-import android.content.Context;
-import android.content.DialogInterface;
-import android.content.Intent;
-import android.location.Location;
-import android.location.LocationListener;
-import android.location.LocationManager;
-import android.os.Bundle;
-import android.os.IBinder;
-import android.provider.Settings;
-import android.util.Log;
-
-public class GPSTracker extends Service implements LocationListener {
-
- private final Context mContext;
-
- // flag for GPS status
- boolean isGPSEnabled = false;
-
- // flag for network status
- boolean isNetworkEnabled = false;
-
- // flag for GPS status
- boolean canGetLocation = false;
-
- Location location; // location
- double latitude; // latitude
- double longitude; // longitude
-
- // The minimum distance to change Updates in meters
- private static final long MIN_DISTANCE_CHANGE_FOR_UPDATES = 10; // 10 meters
-
- // The minimum time between updates in milliseconds
- private static final long MIN_TIME_BW_UPDATES = 10 * 60 * 1; // 1 minute
-
- // Declaring a Location Manager
- protected LocationManager locationManager;
-
- public GPSTracker(Context context) {
- this.mContext = context;
- getLocation();
- }
-
- public Location getLocation() {
- try {
- locationManager = (LocationManager) mContext
- .getSystemService(LOCATION_SERVICE);
-
- // getting GPS status
- isGPSEnabled = locationManager
- .isProviderEnabled(LocationManager.GPS_PROVIDER);
-
- // getting network status
- isNetworkEnabled = locationManager
- .isProviderEnabled(LocationManager.NETWORK_PROVIDER);
-
- if (!isGPSEnabled && !isNetworkEnabled) {
- // no network provider is enabled
- } else {
- this.canGetLocation = true;
- if (isNetworkEnabled) {
- locationManager.requestLocationUpdates(
- LocationManager.NETWORK_PROVIDER,
- MIN_TIME_BW_UPDATES,
- MIN_DISTANCE_CHANGE_FOR_UPDATES, this);
- Log.d("Network", "Network");
- if (locationManager != null) {
- location = locationManager
- .getLastKnownLocation(LocationManager.NETWORK_PROVIDER);
- if (location != null) {
- latitude = location.getLatitude();
- longitude = location.getLongitude();
- }
- }
- }
- // if GPS Enabled get lat/long using GPS Services
- if (isGPSEnabled) {
- if (location == null) {
- locationManager.requestLocationUpdates(
- LocationManager.GPS_PROVIDER,
- MIN_TIME_BW_UPDATES,
- MIN_DISTANCE_CHANGE_FOR_UPDATES, this);
- Log.d("GPS Enabled", "GPS Enabled");
- if (locationManager != null) {
- location = locationManager
- .getLastKnownLocation(LocationManager.GPS_PROVIDER);
- if (location != null) {
- latitude = location.getLatitude();
- longitude = location.getLongitude();
- }
- }
- }
- }
- }
-
- } catch (Exception e) {
- e.printStackTrace();
- }
-
- return location;
- }
-
- /**
- * Stop using GPS listener
- * Calling this function will stop using GPS in your app
- */
- public void stopUsingGPS(){
- if(locationManager != null){
- locationManager.removeUpdates(GPSTracker.this);
- }
- }
-
- /**
- * Function to get latitude
- */
- public double getLatitude(){
- if(location != null){
- latitude = location.getLatitude();
- }
-
- // return latitude
- return latitude;
- }
-
- /**
- * Function to get longitude
- */
- public double getLongitude(){
- if(location != null){
- longitude = location.getLongitude();
- }
-
- // return longitude
- return longitude;
- }
-
- /**
- * Function to check GPS/wifi enabled
- * @return boolean
- */
- public boolean canGetLocation() {
- return this.canGetLocation;
- }
-
- /**
- * Function to show settings alert dialog
- * On pressing Settings button will lauch Settings Options
- */
- public void showSettingsAlert(){
- AlertDialog.Builder alertDialog = new AlertDialog.Builder(mContext);
-
- // Setting Dialog Title
- alertDialog.setTitle("GPS is settings");
-
- // Setting Dialog Message
- alertDialog.setMessage("GPS is not enabled. Do you want to go to settings menu?");
-
- // On pressing Settings button
- alertDialog.setPositiveButton("Settings", new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog,int which) {
- Intent intent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
- mContext.startActivity(intent);
- }
- });
-
- // on pressing cancel button
- alertDialog.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
- public void onClick(DialogInterface dialog, int which) {
- dialog.cancel();
- }
- });
-
- // Showing Alert Message
- alertDialog.show();
- }
-
- @Override
- public void onLocationChanged(Location location) {
- }
-
- @Override
- public void onProviderDisabled(String provider) {
- }
-
- @Override
- public void onProviderEnabled(String provider) {
- }
-
- @Override
- public void onStatusChanged(String provider, int status, Bundle extras) {
- }
-
- @Override
- public IBinder onBind(Intent arg0) {
- return null;
- }
-}
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);
- }
- }
-}