From 21fa4ac31533424dce71fbb2e49171f7bff167f7 Mon Sep 17 00:00:00 2001 From: sjtufs Date: Thu, 22 Aug 2013 10:02:04 +0800 Subject: gps demo --- .../AndroidGPSTracking/.AndroidManifest.xml.swp | Bin 0 -> 12288 bytes client/gps-demo/AndroidGPSTracking/.classpath | 9 + 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 +++ client/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 +++ client/gps-demo/AndroidGPSTracking/proguard.cfg | 40 +++++ .../gps-demo/AndroidGPSTracking/project.properties | 11 ++ .../res/drawable-hdpi/ic_launcher.png | Bin 0 -> 4147 bytes .../res/drawable-ldpi/ic_launcher.png | Bin 0 -> 1723 bytes .../res/drawable-mdpi/ic_launcher.png | Bin 0 -> 2574 bytes .../AndroidGPSTracking/res/layout/main.xml | 14 ++ .../AndroidGPSTracking/res/values/strings.xml | 7 + .../gpstracking/AndroidGPSTrackingActivity.java | 50 ++++++ .../src/com/example/gpstracking/GPSTracker.java | 200 +++++++++++++++++++++ 38 files changed, 457 insertions(+) create mode 100644 client/gps-demo/AndroidGPSTracking/.AndroidManifest.xml.swp create mode 100644 client/gps-demo/AndroidGPSTracking/.classpath create mode 100644 client/gps-demo/AndroidGPSTracking/.project create mode 100644 client/gps-demo/AndroidGPSTracking/.settings/org.eclipse.jdt.core.prefs create mode 100644 client/gps-demo/AndroidGPSTracking/AndroidManifest.xml create mode 100644 client/gps-demo/AndroidGPSTracking/bin/AndroidGPSTracking.apk create mode 100644 client/gps-demo/AndroidGPSTracking/bin/AndroidManifest.xml create mode 100644 client/gps-demo/AndroidGPSTracking/bin/classes.dex create mode 100644 client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity$1.class create mode 100644 client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity.class create mode 100644 client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/BuildConfig.class create mode 100644 client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$1.class create mode 100644 client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$2.class create mode 100644 client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker.class create mode 100644 client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$attr.class create mode 100644 client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$drawable.class create mode 100644 client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$id.class create mode 100644 client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$layout.class create mode 100644 client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$string.class create mode 100644 client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R.class create mode 100644 client/gps-demo/AndroidGPSTracking/bin/dexedLibs/annotations-5b022f4578500e25e3bfa446659bd7d8.jar create mode 100644 client/gps-demo/AndroidGPSTracking/bin/jarlist.cache create mode 100644 client/gps-demo/AndroidGPSTracking/bin/res/drawable-hdpi/ic_launcher.png create mode 100644 client/gps-demo/AndroidGPSTracking/bin/res/drawable-ldpi/ic_launcher.png create mode 100644 client/gps-demo/AndroidGPSTracking/bin/res/drawable-mdpi/ic_launcher.png create mode 100644 client/gps-demo/AndroidGPSTracking/bin/resources.ap_ create mode 100644 client/gps-demo/AndroidGPSTracking/default.properties create mode 100644 client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/BuildConfig.java create mode 100644 client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/R.java create mode 100644 client/gps-demo/AndroidGPSTracking/proguard.cfg create mode 100644 client/gps-demo/AndroidGPSTracking/project.properties create mode 100644 client/gps-demo/AndroidGPSTracking/res/drawable-hdpi/ic_launcher.png create mode 100644 client/gps-demo/AndroidGPSTracking/res/drawable-ldpi/ic_launcher.png create mode 100644 client/gps-demo/AndroidGPSTracking/res/drawable-mdpi/ic_launcher.png create mode 100644 client/gps-demo/AndroidGPSTracking/res/layout/main.xml create mode 100644 client/gps-demo/AndroidGPSTracking/res/values/strings.xml create mode 100644 client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/AndroidGPSTrackingActivity.java create mode 100644 client/gps-demo/AndroidGPSTracking/src/com/example/gpstracking/GPSTracker.java (limited to 'client') diff --git a/client/gps-demo/AndroidGPSTracking/.AndroidManifest.xml.swp b/client/gps-demo/AndroidGPSTracking/.AndroidManifest.xml.swp new file mode 100644 index 0000000..d03b360 Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/.AndroidManifest.xml.swp differ diff --git a/client/gps-demo/AndroidGPSTracking/.classpath b/client/gps-demo/AndroidGPSTracking/.classpath new file mode 100644 index 0000000..5176974 --- /dev/null +++ b/client/gps-demo/AndroidGPSTracking/.classpath @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/client/gps-demo/AndroidGPSTracking/.project b/client/gps-demo/AndroidGPSTracking/.project new file mode 100644 index 0000000..a080853 --- /dev/null +++ b/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/client/gps-demo/AndroidGPSTracking/.settings/org.eclipse.jdt.core.prefs b/client/gps-demo/AndroidGPSTracking/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..b080d2d --- /dev/null +++ b/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/client/gps-demo/AndroidGPSTracking/AndroidManifest.xml b/client/gps-demo/AndroidGPSTracking/AndroidManifest.xml new file mode 100644 index 0000000..137894c --- /dev/null +++ b/client/gps-demo/AndroidGPSTracking/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/client/gps-demo/AndroidGPSTracking/bin/AndroidGPSTracking.apk b/client/gps-demo/AndroidGPSTracking/bin/AndroidGPSTracking.apk new file mode 100644 index 0000000..985304a Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/bin/AndroidGPSTracking.apk differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/AndroidManifest.xml b/client/gps-demo/AndroidGPSTracking/bin/AndroidManifest.xml new file mode 100644 index 0000000..137894c --- /dev/null +++ b/client/gps-demo/AndroidGPSTracking/bin/AndroidManifest.xml @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/client/gps-demo/AndroidGPSTracking/bin/classes.dex b/client/gps-demo/AndroidGPSTracking/bin/classes.dex new file mode 100644 index 0000000..1a8d494 Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/bin/classes.dex differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity$1.class b/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/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity$1.class differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity.class b/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity.class new file mode 100644 index 0000000..7df00e1 Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/AndroidGPSTrackingActivity.class differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/BuildConfig.class b/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/BuildConfig.class new file mode 100644 index 0000000..15960aa Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/BuildConfig.class differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$1.class b/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/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$1.class differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$2.class b/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/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker$2.class differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker.class b/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker.class new file mode 100644 index 0000000..6f6bd93 Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/GPSTracker.class differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$attr.class b/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/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$attr.class differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$drawable.class b/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/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$drawable.class differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$id.class b/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/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$id.class differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$layout.class b/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/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$layout.class differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$string.class b/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/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R$string.class differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R.class b/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R.class new file mode 100644 index 0000000..7f0475e Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/bin/classes/com/example/gpstracking/R.class differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/dexedLibs/annotations-5b022f4578500e25e3bfa446659bd7d8.jar b/client/gps-demo/AndroidGPSTracking/bin/dexedLibs/annotations-5b022f4578500e25e3bfa446659bd7d8.jar new file mode 100644 index 0000000..61505d5 Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/bin/dexedLibs/annotations-5b022f4578500e25e3bfa446659bd7d8.jar differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/jarlist.cache b/client/gps-demo/AndroidGPSTracking/bin/jarlist.cache new file mode 100644 index 0000000..0565465 --- /dev/null +++ b/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/client/gps-demo/AndroidGPSTracking/bin/res/drawable-hdpi/ic_launcher.png b/client/gps-demo/AndroidGPSTracking/bin/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..882eb14 Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/bin/res/drawable-hdpi/ic_launcher.png differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/res/drawable-ldpi/ic_launcher.png b/client/gps-demo/AndroidGPSTracking/bin/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 0000000..18689f6 Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/bin/res/drawable-ldpi/ic_launcher.png differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/res/drawable-mdpi/ic_launcher.png b/client/gps-demo/AndroidGPSTracking/bin/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..02e96b9 Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/bin/res/drawable-mdpi/ic_launcher.png differ diff --git a/client/gps-demo/AndroidGPSTracking/bin/resources.ap_ b/client/gps-demo/AndroidGPSTracking/bin/resources.ap_ new file mode 100644 index 0000000..8c035b7 Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/bin/resources.ap_ differ diff --git a/client/gps-demo/AndroidGPSTracking/default.properties b/client/gps-demo/AndroidGPSTracking/default.properties new file mode 100644 index 0000000..32299c2 --- /dev/null +++ b/client/gps-demo/AndroidGPSTracking/default.properties @@ -0,0 +1,2 @@ +# Project target. +target=android-8 diff --git a/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/BuildConfig.java b/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/BuildConfig.java new file mode 100644 index 0000000..c164cb3 --- /dev/null +++ b/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/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/R.java b/client/gps-demo/AndroidGPSTracking/gen/com/example/gpstracking/R.java new file mode 100644 index 0000000..c747309 --- /dev/null +++ b/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/client/gps-demo/AndroidGPSTracking/proguard.cfg b/client/gps-demo/AndroidGPSTracking/proguard.cfg new file mode 100644 index 0000000..b1cdf17 --- /dev/null +++ b/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/client/gps-demo/AndroidGPSTracking/project.properties b/client/gps-demo/AndroidGPSTracking/project.properties new file mode 100644 index 0000000..ea89160 --- /dev/null +++ b/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/client/gps-demo/AndroidGPSTracking/res/drawable-hdpi/ic_launcher.png b/client/gps-demo/AndroidGPSTracking/res/drawable-hdpi/ic_launcher.png new file mode 100644 index 0000000..8074c4c Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/res/drawable-hdpi/ic_launcher.png differ diff --git a/client/gps-demo/AndroidGPSTracking/res/drawable-ldpi/ic_launcher.png b/client/gps-demo/AndroidGPSTracking/res/drawable-ldpi/ic_launcher.png new file mode 100644 index 0000000..1095584 Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/res/drawable-ldpi/ic_launcher.png differ diff --git a/client/gps-demo/AndroidGPSTracking/res/drawable-mdpi/ic_launcher.png b/client/gps-demo/AndroidGPSTracking/res/drawable-mdpi/ic_launcher.png new file mode 100644 index 0000000..a07c69f Binary files /dev/null and b/client/gps-demo/AndroidGPSTracking/res/drawable-mdpi/ic_launcher.png differ diff --git a/client/gps-demo/AndroidGPSTracking/res/layout/main.xml b/client/gps-demo/AndroidGPSTracking/res/layout/main.xml new file mode 100644 index 0000000..430efa2 --- /dev/null +++ b/client/gps-demo/AndroidGPSTracking/res/layout/main.xml @@ -0,0 +1,14 @@ + + + +