From ac7633d8149a28af288ac0b850850cef9b13c151 Mon Sep 17 00:00:00 2001 From: sjtufs Date: Sun, 25 Aug 2013 15:45:55 +0800 Subject: This is alpha --- misc/client/Piztor/.classpath | 9 + misc/client/Piztor/.project | 33 ++++ .../Piztor/.settings/org.eclipse.jdt.core.prefs | 4 + misc/client/Piztor/AndroidManifest.xml | 36 ++++ misc/client/Piztor/bin/AndroidManifest.xml | 36 ++++ .../bin/classes/com/macaroon/piztor/ActMgr.class | Bin 0 -> 2616 bytes .../classes/com/macaroon/piztor/ActStatus.class | Bin 0 -> 328 bytes .../macaroon/piztor/AppMgr$ActivityStatus.class | Bin 0 -> 1412 bytes .../bin/classes/com/macaroon/piztor/AppMgr.class | Bin 0 -> 2846 bytes .../classes/com/macaroon/piztor/BuildConfig.class | Bin 0 -> 347 bytes .../classes/com/macaroon/piztor/EmptyStatus.class | Bin 0 -> 471 bytes .../bin/classes/com/macaroon/piztor/InitAct.class | Bin 0 -> 804 bytes .../classes/com/macaroon/piztor/PiztorAct.class | Bin 0 -> 2205 bytes .../bin/classes/com/macaroon/piztor/R$attr.class | Bin 0 -> 343 bytes .../bin/classes/com/macaroon/piztor/R$dimen.class | Bin 0 -> 464 bytes .../classes/com/macaroon/piztor/R$drawable.class | Bin 0 -> 410 bytes .../bin/classes/com/macaroon/piztor/R$id.class | Bin 0 -> 396 bytes .../bin/classes/com/macaroon/piztor/R$layout.class | Bin 0 -> 406 bytes .../bin/classes/com/macaroon/piztor/R$menu.class | Bin 0 -> 419 bytes .../bin/classes/com/macaroon/piztor/R$string.class | Bin 0 -> 518 bytes .../bin/classes/com/macaroon/piztor/R$style.class | Bin 0 -> 434 bytes .../Piztor/bin/classes/com/macaroon/piztor/R.class | Bin 0 -> 683 bytes .../gen/com/macaroon/piztor/BuildConfig.java | 6 + misc/client/Piztor/gen/com/macaroon/piztor/R.java | 70 ++++++++ misc/client/Piztor/ic_launcher-web.png | Bin 0 -> 51394 bytes misc/client/Piztor/libs/android-support-v4.jar | Bin 0 -> 556198 bytes misc/client/Piztor/proguard-project.txt | 20 +++ misc/client/Piztor/project.properties | 14 ++ .../Piztor/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 7658 bytes .../Piztor/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 3777 bytes .../Piztor/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 12516 bytes .../Piztor/res/drawable-xxhdpi/ic_launcher.png | Bin 0 -> 24777 bytes misc/client/Piztor/res/layout/activity_init.xml | 16 ++ misc/client/Piztor/res/menu/init.xml | 9 + misc/client/Piztor/res/menu/main.xml | 9 + misc/client/Piztor/res/values-sw600dp/dimens.xml | 8 + .../Piztor/res/values-sw720dp-land/dimens.xml | 9 + misc/client/Piztor/res/values-v11/styles.xml | 11 ++ misc/client/Piztor/res/values-v14/styles.xml | 12 ++ misc/client/Piztor/res/values/dimens.xml | 7 + misc/client/Piztor/res/values/strings.xml | 9 + misc/client/Piztor/res/values/styles.xml | 20 +++ .../Piztor/src/com/macaroon/piztor/ActMgr.java | 63 +++++++ .../Piztor/src/com/macaroon/piztor/AppMgr.java | 62 +++++++ .../Piztor/src/com/macaroon/piztor/InitAct.java | 22 +++ .../Piztor/src/com/macaroon/piztor/PiztorAct.java | 60 +++++++ misc/client/README.rst | 1 + misc/client/Socket-demo/Login.java | 6 + misc/client/Socket-demo/MainActivity.java | 44 +++++ misc/client/Socket-demo/Myrequest.java | 10 ++ misc/client/Socket-demo/Myrespond.java | 12 ++ misc/client/Socket-demo/SocketClient.java | 107 +++++++++++ misc/client/Socket-demo/Transam.java | 125 +++++++++++++ .../AndroidGPSTracking/.AndroidManifest.xml.swp | Bin 0 -> 12288 bytes misc/client/gps-demo/AndroidGPSTracking/.classpath | 9 + misc/client/gps-demo/AndroidGPSTracking/.project | 33 ++++ .../.settings/org.eclipse.jdt.core.prefs | 4 + .../AndroidGPSTracking/AndroidManifest.xml | 26 +++ .../AndroidGPSTracking/bin/AndroidGPSTracking.apk | Bin 0 -> 16993 bytes .../AndroidGPSTracking/bin/AndroidManifest.xml | 26 +++ .../gps-demo/AndroidGPSTracking/bin/classes.dex | Bin 0 -> 9188 bytes .../gpstracking/AndroidGPSTrackingActivity$1.class | Bin 0 -> 1809 bytes .../gpstracking/AndroidGPSTrackingActivity.class | Bin 0 -> 1119 bytes .../com/example/gpstracking/BuildConfig.class | Bin 0 -> 355 bytes .../com/example/gpstracking/GPSTracker$1.class | Bin 0 -> 1206 bytes .../com/example/gpstracking/GPSTracker$2.class | Bin 0 -> 879 bytes .../com/example/gpstracking/GPSTracker.class | Bin 0 -> 4488 bytes .../classes/com/example/gpstracking/R$attr.class | Bin 0 -> 355 bytes .../com/example/gpstracking/R$drawable.class | Bin 0 -> 422 bytes .../bin/classes/com/example/gpstracking/R$id.class | Bin 0 -> 408 bytes .../classes/com/example/gpstracking/R$layout.class | Bin 0 -> 409 bytes .../classes/com/example/gpstracking/R$string.class | Bin 0 -> 442 bytes .../bin/classes/com/example/gpstracking/R.class | Bin 0 -> 566 bytes ...nnotations-5b022f4578500e25e3bfa446659bd7d8.jar | Bin 0 -> 943 bytes .../gps-demo/AndroidGPSTracking/bin/jarlist.cache | 3 + .../bin/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 3966 bytes .../bin/res/drawable-ldpi/ic_launcher.png | Bin 0 -> 1537 bytes .../bin/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 2200 bytes .../gps-demo/AndroidGPSTracking/bin/resources.ap_ | Bin 0 -> 10818 bytes .../gps-demo/AndroidGPSTracking/default.properties | 2 + .../gen/com/example/gpstracking/BuildConfig.java | 6 + .../gen/com/example/gpstracking/R.java | 26 +++ .../gps-demo/AndroidGPSTracking/proguard.cfg | 40 +++++ .../gps-demo/AndroidGPSTracking/project.properties | 11 ++ .../res/drawable-hdpi/ic_launcher.png | Bin 0 -> 10224 bytes .../res/drawable-ldpi/ic_launcher.png | Bin 0 -> 10224 bytes .../res/drawable-mdpi/ic_launcher.png | Bin 0 -> 10224 bytes .../res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 10224 bytes .../AndroidGPSTracking/res/layout/main.xml | 14 ++ .../AndroidGPSTracking/res/values/strings.xml | 7 + .../gpstracking/AndroidGPSTrackingActivity.java | 50 ++++++ .../src/com/example/gpstracking/GPSTracker.java | 200 +++++++++++++++++++++ .../src/com/example/gpstracking/Tracker.java | 33 ++++ 93 files changed, 1340 insertions(+) create mode 100644 misc/client/Piztor/.classpath create mode 100644 misc/client/Piztor/.project create mode 100644 misc/client/Piztor/.settings/org.eclipse.jdt.core.prefs create mode 100644 misc/client/Piztor/AndroidManifest.xml create mode 100644 misc/client/Piztor/bin/AndroidManifest.xml create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/ActMgr.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/ActStatus.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/AppMgr$ActivityStatus.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/AppMgr.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/BuildConfig.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/EmptyStatus.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/InitAct.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/PiztorAct.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/R$attr.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/R$dimen.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/R$drawable.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/R$id.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/R$layout.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/R$menu.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/R$string.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/R$style.class create mode 100644 misc/client/Piztor/bin/classes/com/macaroon/piztor/R.class create mode 100644 misc/client/Piztor/gen/com/macaroon/piztor/BuildConfig.java create mode 100644 misc/client/Piztor/gen/com/macaroon/piztor/R.java create mode 100644 misc/client/Piztor/ic_launcher-web.png create mode 100644 misc/client/Piztor/libs/android-support-v4.jar create mode 100644 misc/client/Piztor/proguard-project.txt create mode 100644 misc/client/Piztor/project.properties create mode 100644 misc/client/Piztor/res/drawable-hdpi/ic_launcher.png create mode 100644 misc/client/Piztor/res/drawable-mdpi/ic_launcher.png create mode 100644 misc/client/Piztor/res/drawable-xhdpi/ic_launcher.png create mode 100644 misc/client/Piztor/res/drawable-xxhdpi/ic_launcher.png create mode 100644 misc/client/Piztor/res/layout/activity_init.xml create mode 100644 misc/client/Piztor/res/menu/init.xml create mode 100644 misc/client/Piztor/res/menu/main.xml create mode 100644 misc/client/Piztor/res/values-sw600dp/dimens.xml create mode 100644 misc/client/Piztor/res/values-sw720dp-land/dimens.xml create mode 100644 misc/client/Piztor/res/values-v11/styles.xml create mode 100644 misc/client/Piztor/res/values-v14/styles.xml create mode 100644 misc/client/Piztor/res/values/dimens.xml create mode 100644 misc/client/Piztor/res/values/strings.xml create mode 100644 misc/client/Piztor/res/values/styles.xml create mode 100644 misc/client/Piztor/src/com/macaroon/piztor/ActMgr.java create mode 100644 misc/client/Piztor/src/com/macaroon/piztor/AppMgr.java create mode 100644 misc/client/Piztor/src/com/macaroon/piztor/InitAct.java create mode 100644 misc/client/Piztor/src/com/macaroon/piztor/PiztorAct.java create mode 100644 misc/client/README.rst create mode 100644 misc/client/Socket-demo/Login.java create mode 100644 misc/client/Socket-demo/MainActivity.java create mode 100644 misc/client/Socket-demo/Myrequest.java create mode 100644 misc/client/Socket-demo/Myrespond.java create mode 100644 misc/client/Socket-demo/SocketClient.java create mode 100644 misc/client/Socket-demo/Transam.java create mode 100644 misc/client/gps-demo/AndroidGPSTracking/.AndroidManifest.xml.swp create mode 100644 misc/client/gps-demo/AndroidGPSTracking/.classpath create mode 100644 misc/client/gps-demo/AndroidGPSTracking/.project create mode 100644 misc/client/gps-demo/AndroidGPSTracking/.settings/org.eclipse.jdt.core.prefs create mode 100644 misc/client/gps-demo/AndroidGPSTracking/AndroidManifest.xml create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/AndroidGPSTracking.apk create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/AndroidManifest.xml create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/classes.dex create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity$1.class create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity.class create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/BuildConfig.class create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$1.class create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$2.class create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker.class create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$attr.class create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$drawable.class create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$id.class create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$layout.class create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$string.class create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R.class create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/dexedLibs/annotations-5b022f4578500e25e3bfa446659bd7d8.jar create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/jarlist.cache create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-hdpi/ic_launcher.png create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-ldpi/ic_launcher.png create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-mdpi/ic_launcher.png create mode 100644 misc/client/gps-demo/AndroidGPSTracking/bin/resources.ap_ create mode 100644 misc/client/gps-demo/AndroidGPSTracking/default.properties create mode 100644 misc/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/BuildConfig.java create mode 100644 misc/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/R.java create mode 100644 misc/client/gps-demo/AndroidGPSTracking/proguard.cfg create mode 100644 misc/client/gps-demo/AndroidGPSTracking/project.properties create mode 100644 misc/client/gps-demo/AndroidGPSTracking/res/drawable-hdpi/ic_launcher.png create mode 100644 misc/client/gps-demo/AndroidGPSTracking/res/drawable-ldpi/ic_launcher.png create mode 100644 misc/client/gps-demo/AndroidGPSTracking/res/drawable-mdpi/ic_launcher.png create mode 100644 misc/client/gps-demo/AndroidGPSTracking/res/drawable-xhdpi/ic_launcher.png create mode 100644 misc/client/gps-demo/AndroidGPSTracking/res/layout/main.xml create mode 100644 misc/client/gps-demo/AndroidGPSTracking/res/values/strings.xml create mode 100644 misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/AndroidGPSTrackingActivity.java create mode 100644 misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/GPSTracker.java create mode 100644 misc/client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/Tracker.java (limited to 'misc/client') diff --git a/misc/client/Piztor/.classpath b/misc/client/Piztor/.classpath new file mode 100644 index 0000000..7bc01d9 --- /dev/null +++ b/misc/client/Piztor/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/misc/client/Piztor/.project b/misc/client/Piztor/.project new file mode 100644 index 0000000..97100ec --- /dev/null +++ b/misc/client/Piztor/.project @@ -0,0 +1,33 @@ + + + Piztor + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + diff --git a/misc/client/Piztor/.settings/org.eclipse.jdt.core.prefs b/misc/client/Piztor/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..b080d2d --- /dev/null +++ b/misc/client/Piztor/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,4 @@ +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 new file mode 100644 index 0000000..63cb8ff --- /dev/null +++ b/misc/client/Piztor/AndroidManifest.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/misc/client/Piztor/bin/AndroidManifest.xml b/misc/client/Piztor/bin/AndroidManifest.xml new file mode 100644 index 0000000..63cb8ff --- /dev/null +++ b/misc/client/Piztor/bin/AndroidManifest.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/misc/client/Piztor/bin/classes/com/macaroon/piztor/ActMgr.class b/misc/client/Piztor/bin/classes/com/macaroon/piztor/ActMgr.class new file mode 100644 index 0000000..1b1c693 Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/ActMgr.class 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 new file mode 100644 index 0000000..1f3df48 Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/ActStatus.class 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 new file mode 100644 index 0000000..496344b Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/AppMgr$ActivityStatus.class 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 new file mode 100644 index 0000000..107bcad Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/AppMgr.class 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 new file mode 100644 index 0000000..566eb01 Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/BuildConfig.class 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 new file mode 100644 index 0000000..c656689 Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/EmptyStatus.class 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 new file mode 100644 index 0000000..6a8e04d Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/InitAct.class 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 new file mode 100644 index 0000000..4a3fc81 Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/PiztorAct.class 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 new file mode 100644 index 0000000..a95e1ab Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$attr.class 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 new file mode 100644 index 0000000..4bc657f Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$dimen.class 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 new file mode 100644 index 0000000..5444d98 Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$drawable.class 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 new file mode 100644 index 0000000..8577179 Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$id.class 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 new file mode 100644 index 0000000..fab7556 Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$layout.class 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 new file mode 100644 index 0000000..cec6e5a Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$menu.class 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 new file mode 100644 index 0000000..a78c834 Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$string.class 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 new file mode 100644 index 0000000..42ddcce Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R$style.class 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 new file mode 100644 index 0000000..d173856 Binary files /dev/null and b/misc/client/Piztor/bin/classes/com/macaroon/piztor/R.class differ diff --git a/misc/client/Piztor/gen/com/macaroon/piztor/BuildConfig.java b/misc/client/Piztor/gen/com/macaroon/piztor/BuildConfig.java new file mode 100644 index 0000000..833e650 --- /dev/null +++ b/misc/client/Piztor/gen/com/macaroon/piztor/BuildConfig.java @@ -0,0 +1,6 @@ +/** 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 new file mode 100644 index 0000000..9821c7f --- /dev/null +++ b/misc/client/Piztor/gen/com/macaroon/piztor/R.java @@ -0,0 +1,70 @@ +/* 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 new file mode 100644 index 0000000..a18cbb4 Binary files /dev/null and b/misc/client/Piztor/ic_launcher-web.png differ diff --git a/misc/client/Piztor/libs/android-support-v4.jar b/misc/client/Piztor/libs/android-support-v4.jar new file mode 100644 index 0000000..cf12d28 Binary files /dev/null and b/misc/client/Piztor/libs/android-support-v4.jar differ diff --git a/misc/client/Piztor/proguard-project.txt b/misc/client/Piztor/proguard-project.txt new file mode 100644 index 0000000..f2fe155 --- /dev/null +++ b/misc/client/Piztor/proguard-project.txt @@ -0,0 +1,20 @@ +# 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 new file mode 100644 index 0000000..ce39f2d --- /dev/null +++ b/misc/client/Piztor/project.properties @@ -0,0 +1,14 @@ +# 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 new file mode 100644 index 0000000..288b665 Binary files /dev/null and b/misc/client/Piztor/res/drawable-hdpi/ic_launcher.png differ diff --git a/misc/client/Piztor/res/drawable-mdpi/ic_launcher.png b/misc/client/Piztor/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..6ae570b Binary files /dev/null and b/misc/client/Piztor/res/drawable-mdpi/ic_launcher.png differ diff --git a/misc/client/Piztor/res/drawable-xhdpi/ic_launcher.png b/misc/client/Piztor/res/drawable-xhdpi/ic_launcher.png new file mode 100644 index 0000000..d4fb7cd Binary files /dev/null and b/misc/client/Piztor/res/drawable-xhdpi/ic_launcher.png differ diff --git a/misc/client/Piztor/res/drawable-xxhdpi/ic_launcher.png b/misc/client/Piztor/res/drawable-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..85a6081 Binary files /dev/null and b/misc/client/Piztor/res/drawable-xxhdpi/ic_launcher.png differ diff --git a/misc/client/Piztor/res/layout/activity_init.xml b/misc/client/Piztor/res/layout/activity_init.xml new file mode 100644 index 0000000..43e6253 --- /dev/null +++ b/misc/client/Piztor/res/layout/activity_init.xml @@ -0,0 +1,16 @@ + + + + + diff --git a/misc/client/Piztor/res/menu/init.xml b/misc/client/Piztor/res/menu/init.xml new file mode 100644 index 0000000..c002028 --- /dev/null +++ b/misc/client/Piztor/res/menu/init.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/misc/client/Piztor/res/menu/main.xml b/misc/client/Piztor/res/menu/main.xml new file mode 100644 index 0000000..c002028 --- /dev/null +++ b/misc/client/Piztor/res/menu/main.xml @@ -0,0 +1,9 @@ + + + + + diff --git a/misc/client/Piztor/res/values-sw600dp/dimens.xml b/misc/client/Piztor/res/values-sw600dp/dimens.xml new file mode 100644 index 0000000..44f01db --- /dev/null +++ b/misc/client/Piztor/res/values-sw600dp/dimens.xml @@ -0,0 +1,8 @@ + + + + + diff --git a/misc/client/Piztor/res/values-sw720dp-land/dimens.xml b/misc/client/Piztor/res/values-sw720dp-land/dimens.xml new file mode 100644 index 0000000..61e3fa8 --- /dev/null +++ b/misc/client/Piztor/res/values-sw720dp-land/dimens.xml @@ -0,0 +1,9 @@ + + + + 128dp + + diff --git a/misc/client/Piztor/res/values-v11/styles.xml b/misc/client/Piztor/res/values-v11/styles.xml new file mode 100644 index 0000000..3c02242 --- /dev/null +++ b/misc/client/Piztor/res/values-v11/styles.xml @@ -0,0 +1,11 @@ + + + + + + diff --git a/misc/client/Piztor/res/values-v14/styles.xml b/misc/client/Piztor/res/values-v14/styles.xml new file mode 100644 index 0000000..a91fd03 --- /dev/null +++ b/misc/client/Piztor/res/values-v14/styles.xml @@ -0,0 +1,12 @@ + + + + + + diff --git a/misc/client/Piztor/res/values/dimens.xml b/misc/client/Piztor/res/values/dimens.xml new file mode 100644 index 0000000..55c1e59 --- /dev/null +++ b/misc/client/Piztor/res/values/dimens.xml @@ -0,0 +1,7 @@ + + + + 16dp + 16dp + + diff --git a/misc/client/Piztor/res/values/strings.xml b/misc/client/Piztor/res/values/strings.xml new file mode 100644 index 0000000..8e76dc0 --- /dev/null +++ b/misc/client/Piztor/res/values/strings.xml @@ -0,0 +1,9 @@ + + + + Piztor + Settings + Hello world! + InitAct + + diff --git a/misc/client/Piztor/res/values/styles.xml b/misc/client/Piztor/res/values/styles.xml new file mode 100644 index 0000000..6ce89c7 --- /dev/null +++ b/misc/client/Piztor/res/values/styles.xml @@ -0,0 +1,20 @@ + + + + + + + + + diff --git a/misc/client/Piztor/src/com/macaroon/piztor/ActMgr.java b/misc/client/Piztor/src/com/macaroon/piztor/ActMgr.java new file mode 100644 index 0000000..81fa6f2 --- /dev/null +++ b/misc/client/Piztor/src/com/macaroon/piztor/ActMgr.java @@ -0,0 +1,63 @@ +package com.macaroon.piztor; + +import java.util.*; + +import android.annotation.SuppressLint; + +@SuppressLint("UseSparseArrays") +public class ActMgr { + // event + PiztorAct act; + ActStatus nowStatus; + HashMap> mp; + + ActMgr(PiztorAct act, ActStatus nowStatus, ActStatus[] r) { + this.act = act; + this.nowStatus = nowStatus; + mp = new HashMap>(); + for (int i = 0; i < r.length; i++) { + mp.put(r[i], new HashMap()); + } + } + + 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 h = mp.get(a); + h.put(event, b); + mp.put(a, h); + } else { + HashMap h = new HashMap(); + 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 new file mode 100644 index 0000000..9259786 --- /dev/null +++ b/misc/client/Piztor/src/com/macaroon/piztor/AppMgr.java @@ -0,0 +1,62 @@ +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, HashMap>> 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> h = new HashMap>(); + h.put(event, b); + mp.put(a, h); + } + } + + static void addTransition(Class a, int i, Class b) { + if (mp.containsKey(a)) { + HashMap> h = mp.get(a); + h.put(i, b); + mp.put(a, h); + } else { + HashMap> h = new HashMap>(); + h.put(i, b); + mp.put(a, h); + } + } + + static void addStatus(Class a) { + mp.put(a, new HashMap>()); + } + + static void init() { + mp = new HashMap, HashMap>>(); + 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 new file mode 100644 index 0000000..1ce492c --- /dev/null +++ b/misc/client/Piztor/src/com/macaroon/piztor/InitAct.java @@ -0,0 +1,22 @@ +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 new file mode 100644 index 0000000..ad12b17 --- /dev/null +++ b/misc/client/Piztor/src/com/macaroon/piztor/PiztorAct.java @@ -0,0 +1,60 @@ +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 new file mode 100644 index 0000000..ef377cc --- /dev/null +++ b/misc/client/README.rst @@ -0,0 +1 @@ +Here is the folder of android app implementation diff --git a/misc/client/Socket-demo/Login.java b/misc/client/Socket-demo/Login.java new file mode 100644 index 0000000..2dd386c --- /dev/null +++ b/misc/client/Socket-demo/Login.java @@ -0,0 +1,6 @@ +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 new file mode 100644 index 0000000..ab2ef0c --- /dev/null +++ b/misc/client/Socket-demo/MainActivity.java @@ -0,0 +1,44 @@ +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 new file mode 100644 index 0000000..e5bfce2 --- /dev/null +++ b/misc/client/Socket-demo/Myrequest.java @@ -0,0 +1,10 @@ +package com.example.test; + +import java.util.Vector; + +public class Myrequest{ + public Vector contain; + Myrequest(){ + contain = new Vector(); + } +} \ No newline at end of file diff --git a/misc/client/Socket-demo/Myrespond.java b/misc/client/Socket-demo/Myrespond.java new file mode 100644 index 0000000..ea6ef3b --- /dev/null +++ b/misc/client/Socket-demo/Myrespond.java @@ -0,0 +1,12 @@ +package com.example.test; + +import java.util.Vector; + +public class Myrespond{ + public Vector contain; + public String wrong; + Myrespond(){ + wrong = null; + contain = new Vector(); + } +} \ No newline at end of file diff --git a/misc/client/Socket-demo/SocketClient.java b/misc/client/Socket-demo/SocketClient.java new file mode 100644 index 0000000..df42484 --- /dev/null +++ b/misc/client/Socket-demo/SocketClient.java @@ -0,0 +1,107 @@ +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 new file mode 100644 index 0000000..b5e2381 --- /dev/null +++ b/misc/client/Socket-demo/Transam.java @@ -0,0 +1,125 @@ +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 new file mode 100644 index 0000000..d03b360 Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/.AndroidManifest.xml.swp differ diff --git a/misc/client/gps-demo/AndroidGPSTracking/.classpath b/misc/client/gps-demo/AndroidGPSTracking/.classpath new file mode 100644 index 0000000..5176974 --- /dev/null +++ b/misc/client/gps-demo/AndroidGPSTracking/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/misc/client/gps-demo/AndroidGPSTracking/.project b/misc/client/gps-demo/AndroidGPSTracking/.project new file mode 100644 index 0000000..a080853 --- /dev/null +++ b/misc/client/gps-demo/AndroidGPSTracking/.project @@ -0,0 +1,33 @@ + + + AndroidGPSTracking + + + + + + com.android.ide.eclipse.adt.ResourceManagerBuilder + + + + + com.android.ide.eclipse.adt.PreCompilerBuilder + + + + + org.eclipse.jdt.core.javabuilder + + + + + com.android.ide.eclipse.adt.ApkBuilder + + + + + + com.android.ide.eclipse.adt.AndroidNature + org.eclipse.jdt.core.javanature + + 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 new file mode 100644 index 0000000..b080d2d --- /dev/null +++ b/misc/client/gps-demo/AndroidGPSTracking/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,4 @@ +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 new file mode 100644 index 0000000..137894c --- /dev/null +++ b/misc/client/gps-demo/AndroidGPSTracking/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000..985304a Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/AndroidGPSTracking.apk differ diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/AndroidManifest.xml b/misc/client/gps-demo/AndroidGPSTracking/bin/AndroidManifest.xml new file mode 100644 index 0000000..137894c --- /dev/null +++ b/misc/client/gps-demo/AndroidGPSTracking/bin/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + \ 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 new file mode 100644 index 0000000..1a8d494 Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/classes.dex 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 new file mode 100644 index 0000000..3367336 Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity$1.class 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 new file mode 100644 index 0000000..7df00e1 Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity.class 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 new file mode 100644 index 0000000..15960aa Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/BuildConfig.class 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 new file mode 100644 index 0000000..8e2ea2b Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$1.class 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 new file mode 100644 index 0000000..572f305 Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$2.class 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 new file mode 100644 index 0000000..6f6bd93 Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker.class 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 new file mode 100644 index 0000000..1dbe417 Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$attr.class 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 new file mode 100644 index 0000000..f46f86d Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$drawable.class 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 new file mode 100644 index 0000000..7d48158 Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$id.class 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 new file mode 100644 index 0000000..08f0ade Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$layout.class 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 new file mode 100644 index 0000000..7c72195 Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$string.class 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 new file mode 100644 index 0000000..7f0475e Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R.class 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 new file mode 100644 index 0000000..61505d5 Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/dexedLibs/annotations-5b022f4578500e25e3bfa446659bd7d8.jar differ diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/jarlist.cache b/misc/client/gps-demo/AndroidGPSTracking/bin/jarlist.cache new file mode 100644 index 0000000..0565465 --- /dev/null +++ b/misc/client/gps-demo/AndroidGPSTracking/bin/jarlist.cache @@ -0,0 +1,3 @@ +# cache for current jar dependency. DO NOT EDIT. +# format is +# 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 new file mode 100644 index 0000000..882eb14 Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-hdpi/ic_launcher.png 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 new file mode 100644 index 0000000..18689f6 Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-ldpi/ic_launcher.png 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 new file mode 100644 index 0000000..02e96b9 Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/res/drawable-mdpi/ic_launcher.png differ diff --git a/misc/client/gps-demo/AndroidGPSTracking/bin/resources.ap_ b/misc/client/gps-demo/AndroidGPSTracking/bin/resources.ap_ new file mode 100644 index 0000000..8c035b7 Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/bin/resources.ap_ differ diff --git a/misc/client/gps-demo/AndroidGPSTracking/default.properties b/misc/client/gps-demo/AndroidGPSTracking/default.properties new file mode 100644 index 0000000..32299c2 --- /dev/null +++ b/misc/client/gps-demo/AndroidGPSTracking/default.properties @@ -0,0 +1,2 @@ +# 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 new file mode 100644 index 0000000..c164cb3 --- /dev/null +++ b/misc/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/BuildConfig.java @@ -0,0 +1,6 @@ +/** 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 new file mode 100644 index 0000000..c747309 --- /dev/null +++ b/misc/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/R.java @@ -0,0 +1,26 @@ +/* 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 new file mode 100644 index 0000000..b1cdf17 --- /dev/null +++ b/misc/client/gps-demo/AndroidGPSTracking/proguard.cfg @@ -0,0 +1,40 @@ +-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 ; +} + +-keepclasseswithmembers class * { + public (android.content.Context, android.util.AttributeSet); +} + +-keepclasseswithmembers class * { + public (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 new file mode 100644 index 0000000..ea89160 --- /dev/null +++ b/misc/client/gps-demo/AndroidGPSTracking/project.properties @@ -0,0 +1,11 @@ +# 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 new file mode 100644 index 0000000..efc8f0a Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/res/drawable-hdpi/ic_launcher.png 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 new file mode 100644 index 0000000..efc8f0a Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/res/drawable-ldpi/ic_launcher.png 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 new file mode 100644 index 0000000..efc8f0a Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/res/drawable-mdpi/ic_launcher.png 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 new file mode 100644 index 0000000..efc8f0a Binary files /dev/null and b/misc/client/gps-demo/AndroidGPSTracking/res/drawable-xhdpi/ic_launcher.png differ diff --git a/misc/client/gps-demo/AndroidGPSTracking/res/layout/main.xml b/misc/client/gps-demo/AndroidGPSTracking/res/layout/main.xml new file mode 100644 index 0000000..430efa2 --- /dev/null +++ b/misc/client/gps-demo/AndroidGPSTracking/res/layout/main.xml @@ -0,0 +1,14 @@ + + + +