├── libs
├── baidumapapi.jar
├── locSDK_2.6.jar
└── armeabi
│ ├── liblocSDK_2.4.so
│ └── libBMapApiEngine_v1_3_3.so
├── res
├── drawable-hdpi
│ ├── icon.png
│ ├── pagebg.jpg
│ ├── apkicon.png
│ ├── btn_buy.png
│ ├── btn_buy_down.png
│ ├── btn_buy_disable.png
│ ├── bar_title_shadow.9.png
│ └── sms_embeded_text_editor_bg.9.png
├── drawable-ldpi
│ └── icon.png
├── drawable-mdpi
│ └── icon.png
├── values
│ ├── strings.xml
│ ├── colors.xml
│ └── style.xml
├── drawable
│ └── button.xml
└── layout
│ └── main.xml
├── src
└── cn
│ └── egps
│ └── gps
│ └── main
│ ├── Utils.java
│ ├── MapHelper.java
│ ├── GpsService.java
│ ├── MainActivity.java
│ ├── Constant.java
│ ├── AutoStart.java
│ └── LocationParams.java
├── default.properties
├── README.md
├── gen
└── cn
│ └── egps
│ └── gps
│ └── main
│ ├── Manifest.java
│ └── R.java
├── .gitignore
├── .classpath
├── project.properties
├── .project
└── AndroidManifest.xml
/libs/baidumapapi.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/libs/baidumapapi.jar
--------------------------------------------------------------------------------
/libs/locSDK_2.6.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/libs/locSDK_2.6.jar
--------------------------------------------------------------------------------
/res/drawable-hdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/res/drawable-hdpi/icon.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/pagebg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/res/drawable-hdpi/pagebg.jpg
--------------------------------------------------------------------------------
/res/drawable-ldpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/res/drawable-ldpi/icon.png
--------------------------------------------------------------------------------
/res/drawable-mdpi/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/res/drawable-mdpi/icon.png
--------------------------------------------------------------------------------
/libs/armeabi/liblocSDK_2.4.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/libs/armeabi/liblocSDK_2.4.so
--------------------------------------------------------------------------------
/res/drawable-hdpi/apkicon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/res/drawable-hdpi/apkicon.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/btn_buy.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/res/drawable-hdpi/btn_buy.png
--------------------------------------------------------------------------------
/src/cn/egps/gps/main/Utils.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/src/cn/egps/gps/main/Utils.java
--------------------------------------------------------------------------------
/res/drawable-hdpi/btn_buy_down.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/res/drawable-hdpi/btn_buy_down.png
--------------------------------------------------------------------------------
/src/cn/egps/gps/main/MapHelper.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/src/cn/egps/gps/main/MapHelper.java
--------------------------------------------------------------------------------
/res/drawable-hdpi/btn_buy_disable.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/res/drawable-hdpi/btn_buy_disable.png
--------------------------------------------------------------------------------
/src/cn/egps/gps/main/GpsService.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/src/cn/egps/gps/main/GpsService.java
--------------------------------------------------------------------------------
/src/cn/egps/gps/main/MainActivity.java:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/src/cn/egps/gps/main/MainActivity.java
--------------------------------------------------------------------------------
/libs/armeabi/libBMapApiEngine_v1_3_3.so:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/libs/armeabi/libBMapApiEngine_v1_3_3.so
--------------------------------------------------------------------------------
/res/drawable-hdpi/bar_title_shadow.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/res/drawable-hdpi/bar_title_shadow.9.png
--------------------------------------------------------------------------------
/res/drawable-hdpi/sms_embeded_text_editor_bg.9.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/whsheng/lbs/HEAD/res/drawable-hdpi/sms_embeded_text_editor_bg.9.png
--------------------------------------------------------------------------------
/res/values/strings.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Hello World, MainActivity!
4 | 奥发GPS
5 |
6 |
--------------------------------------------------------------------------------
/src/cn/egps/gps/main/Constant.java:
--------------------------------------------------------------------------------
1 | package cn.egps.gps.main;
2 |
3 | public class Constant {
4 |
5 | public static final String TAG="gpsService";
6 |
7 | public static final String ENCODING="utf-8";
8 |
9 | public static final String RECEIVEADDRESS="cn.egps.gps.main.address";
10 | }
11 |
--------------------------------------------------------------------------------
/res/drawable/button.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
--------------------------------------------------------------------------------
/default.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system use,
7 | # "build.properties", and override values to adapt the script to your
8 | # project structure.
9 |
10 | # Project target.
11 | target=Google Inc.:Google APIs:8
12 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
2 | 外勤人员轨迹管理
3 | ============
4 | # 背景
5 | 大多数企业都希望及时了解公司外勤人员工作期间在外情况,本APK就为了满足此类需求,它以Service的形式运行在外勤人员手中,按照规定的间隔,将外勤人员位置信息加密处理,上报到公司服务器中。
6 | 公司管理人员可以通过其它系统,及时了解外勤人员在外位置等信息,以便公司及时做出决策。
7 |
8 | # 功能
9 | 1. 完全支持百度地图;
10 | 2. 安全兼容HQ终端通讯协议;
11 | 3. 以服务形式运行,支持开机自启动;
12 | 4. 支持在规定工作时间内后台运行;
13 |
14 | [](https://dartnode.com "Powered by DartNode - Free VPS for Open Source")
15 |
--------------------------------------------------------------------------------
/gen/cn/egps/gps/main/Manifest.java:
--------------------------------------------------------------------------------
1 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
2 | *
3 | * This class was automatically generated by the
4 | * aapt tool from the resource data it found. It
5 | * should not be modified by hand.
6 | */
7 |
8 | package cn.egps.gps.main;
9 |
10 | public final class Manifest {
11 | public static final class permission {
12 | public static final String BAIDU_LOCATION_SERVICE="android.permission.BAIDU_LOCATION_SERVICE";
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # built application files
2 | *.apk
3 | *.ap_
4 |
5 | # files for the dex VM
6 | *.dex
7 |
8 | # Java class files
9 | *.class
10 |
11 | # generated files
12 | bin/
13 | gen/
14 |
15 | # Local configuration file (sdk path, etc)
16 | local.properties
17 |
18 | # Eclipse project files
19 | .classpath
20 | .project
21 |
22 | # Proguard folder generated by Eclipse
23 | proguard/
24 | .settings/
25 |
26 | # Intellij project files
27 | *.iml
28 | *.ipr
29 | *.iws
30 | .idea/
31 |
--------------------------------------------------------------------------------
/.classpath:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/project.properties:
--------------------------------------------------------------------------------
1 | # This file is automatically generated by Android Tools.
2 | # Do not modify this file -- YOUR CHANGES WILL BE ERASED!
3 | #
4 | # This file must be checked in Version Control Systems.
5 | #
6 | # To customize properties used by the Ant build system edit
7 | # "ant.properties", and override values to adapt the script to your
8 | # project structure.
9 | #
10 | # To enable ProGuard to shrink and obfuscate your code, uncomment this (available properties: sdk.dir, user.home):
11 | #proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
12 |
13 | # Project target.
14 | target=android-8
15 |
--------------------------------------------------------------------------------
/src/cn/egps/gps/main/AutoStart.java:
--------------------------------------------------------------------------------
1 | package cn.egps.gps.main;
2 |
3 | import android.content.BroadcastReceiver;
4 | import android.content.Context;
5 | import android.content.Intent;
6 |
7 | public class AutoStart extends BroadcastReceiver {
8 |
9 | @Override
10 | public void onReceive(Context context, Intent intent) {
11 | // TODO Auto-generated method stub
12 | try{
13 | Intent myIntent = new Intent(context,GpsService.class);
14 | //myIntent.setAction("cn.egps.gps.main.GpsService");
15 | context.startService(myIntent);
16 | }catch(Exception ex){
17 | GpsService.writeLog(Utils.printException(ex));
18 | }
19 |
20 | }
21 |
22 | }
23 |
--------------------------------------------------------------------------------
/res/values/colors.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | #43859d
4 | #000000
5 | #d5d3d6
6 | #f3f3f3
7 | #3e3e3e
8 | #3993d1
9 | #f3f3f3
10 | #ffffff
11 | #2AA9EA
12 | #3e3e3e
13 |
14 | #ffffffff
15 | #ff000000
16 | #ffccddff
17 | #ff808080
18 | #ff707277
19 | #ffcccccc
20 |
21 |
--------------------------------------------------------------------------------
/.project:
--------------------------------------------------------------------------------
1 |
2 |
3 | AFGPS_lbs
4 |
5 |
6 |
7 |
8 |
9 | com.android.ide.eclipse.adt.ResourceManagerBuilder
10 |
11 |
12 |
13 |
14 | com.android.ide.eclipse.adt.PreCompilerBuilder
15 |
16 |
17 |
18 |
19 | org.eclipse.jdt.core.javabuilder
20 |
21 |
22 |
23 |
24 | com.android.ide.eclipse.adt.ApkBuilder
25 |
26 |
27 |
28 |
29 |
30 | com.android.ide.eclipse.adt.AndroidNature
31 | org.eclipse.jdt.core.javanature
32 |
33 |
34 |
--------------------------------------------------------------------------------
/res/values/style.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
9 |
10 |
19 |
20 |
21 |
25 |
26 |
32 |
--------------------------------------------------------------------------------
/src/cn/egps/gps/main/LocationParams.java:
--------------------------------------------------------------------------------
1 | package cn.egps.gps.main;
2 |
3 | import java.io.Serializable;
4 |
5 | public class LocationParams implements Serializable {
6 |
7 | /**
8 | *
9 | */
10 | private static final long serialVersionUID = 1L;
11 |
12 | private double lat;
13 |
14 | private double lng;
15 |
16 | private String address;
17 |
18 | private String time;
19 |
20 | private int cid;
21 |
22 | private int lac;
23 |
24 | private float speed;
25 |
26 | private double altitude;
27 |
28 | private float direction;
29 |
30 | /**
31 | * @return the direction
32 | */
33 | public float getDirection() {
34 | return direction;
35 | }
36 |
37 | /**
38 | * @param direction the direction to set
39 | */
40 | public void setDirection(float direction) {
41 | this.direction = direction;
42 | }
43 |
44 | /**
45 | * @return the altitude
46 | */
47 | public double getAltitude() {
48 | return altitude;
49 | }
50 |
51 | /**
52 | * @param altitude the altitude to set
53 | */
54 | public void setAltitude(double altitude) {
55 | this.altitude = altitude;
56 | }
57 |
58 | private int errorCode=-1;
59 |
60 | private float radius=-1f;
61 |
62 | public double getLat() {
63 | return lat;
64 | }
65 |
66 | public void setLat(double lat) {
67 | this.lat = lat;
68 | }
69 |
70 | public double getLng() {
71 | return lng;
72 | }
73 |
74 | public void setLng(double lng) {
75 | this.lng = lng;
76 | }
77 |
78 | public String getAddress() {
79 | return address;
80 | }
81 |
82 | public void setAddress(String address) {
83 | this.address = address;
84 | }
85 |
86 | public String getTime() {
87 | return time;
88 | }
89 |
90 | public void setTime(String time) {
91 | this.time = time;
92 | }
93 |
94 | public int getCid() {
95 | return cid;
96 | }
97 |
98 | public void setCid(int cid) {
99 | this.cid = cid;
100 | }
101 |
102 | public int getLac() {
103 | return lac;
104 | }
105 |
106 | public void setLac(int lac) {
107 | this.lac = lac;
108 | }
109 |
110 | public float getSpeed() {
111 | return speed;
112 | }
113 |
114 | public void setSpeed(float speed) {
115 | this.speed = speed;
116 | }
117 |
118 | public int getErrorCode() {
119 | return errorCode;
120 | }
121 |
122 | public void setErrorCode(int errorCode) {
123 | this.errorCode = errorCode;
124 | }
125 |
126 | public float getRadius() {
127 | return radius;
128 | }
129 |
130 | public void setRadius(float radius) {
131 | this.radius = radius;
132 | }
133 |
134 | }
135 |
--------------------------------------------------------------------------------
/gen/cn/egps/gps/main/R.java:
--------------------------------------------------------------------------------
1 | /* AUTO-GENERATED FILE. DO NOT MODIFY.
2 | *
3 | * This class was automatically generated by the
4 | * aapt tool from the resource data it found. It
5 | * should not be modified by hand.
6 | */
7 |
8 | package cn.egps.gps.main;
9 |
10 | public final class R {
11 | public static final class attr {
12 | }
13 | public static final class color {
14 | public static final int bgfff=0x7f040007;
15 | public static final int black=0x7f04000b;
16 | public static final int blue=0x7f04000c;
17 | public static final int fontcolor=0x7f040004;
18 | public static final int grey=0x7f04000d;
19 | public static final int itembg=0x7f040006;
20 | public static final int listbg=0x7f040003;
21 | public static final int pagebgcolor=0x7f040002;
22 | public static final int pls_talk_normal=0x7f04000e;
23 | public static final int radiobg_normal=0x7f040001;
24 | public static final int radiobg_press=0x7f040000;
25 | public static final int search_hint=0x7f04000f;
26 | public static final int selectphone=0x7f040008;
27 | public static final int tablecolor=0x7f040005;
28 | public static final int white=0x7f04000a;
29 | public static final int wordcolor=0x7f040009;
30 | }
31 | public static final class drawable {
32 | public static final int apkicon=0x7f020000;
33 | public static final int bar_title_shadow=0x7f020001;
34 | public static final int btn_buy=0x7f020002;
35 | public static final int btn_buy_disable=0x7f020003;
36 | public static final int btn_buy_down=0x7f020004;
37 | public static final int button=0x7f020005;
38 | public static final int icon=0x7f020006;
39 | public static final int pagebg=0x7f020007;
40 | public static final int sms_embeded_text_editor_bg=0x7f020008;
41 | }
42 | public static final class id {
43 | public static final int btnStart=0x7f070005;
44 | public static final int btnStop=0x7f070006;
45 | public static final int ip=0x7f070003;
46 | public static final int loginmain=0x7f070000;
47 | public static final int port=0x7f070004;
48 | public static final int txtAddress=0x7f070001;
49 | public static final int txtimei=0x7f070002;
50 | }
51 | public static final class layout {
52 | public static final int main=0x7f030000;
53 | }
54 | public static final class string {
55 | public static final int app_name=0x7f050001;
56 | public static final int hello=0x7f050000;
57 | }
58 | public static final class style {
59 | public static final int editTextStyle=0x7f060002;
60 | public static final int leftright20=0x7f060001;
61 | public static final int listTitle=0x7f060003;
62 | public static final int title=0x7f060000;
63 | }
64 | }
65 |
--------------------------------------------------------------------------------
/AndroidManifest.xml:
--------------------------------------------------------------------------------
1 |
2 |
6 |
7 |
10 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
33 |
34 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
60 |
61 |
62 |
63 |
64 |
65 |
66 |
67 |
--------------------------------------------------------------------------------
/res/layout/main.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 |
9 |
10 |
14 |
15 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
33 |
40 |
41 |
42 |
50 |
56 |
57 |
58 |
66 |
67 |
68 |
69 |
70 |
78 |
84 |
85 |
86 |
87 |
98 |
99 |
100 |
107 |
115 |
126 |
127 |
128 |
129 |
137 |
151 |
152 |
166 |
167 |
168 |
169 |
170 |
--------------------------------------------------------------------------------