Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
石璀亮
/
agenew_a16_sos
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 3d3280c6
authored
Apr 26, 2020
by
hanqianqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上传电池电量信息
1 parent
e4abb500
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
app/src/main/java/com/toscl/location/hengfeng/LocationService.java
app/src/main/java/com/toscl/location/hengfeng/util/PreferencesUtil.java
app/src/main/java/com/toscl/location/hengfeng/LocationService.java
View file @
3d3280c
...
...
@@ -405,6 +405,8 @@ public class LocationService extends Service {
jsonBody
.
put
(
PreferencesUtil
.
HENG_FENG_REQ_SERVER_LONGITUDE
,
mLongitude
);
jsonBody
.
put
(
PreferencesUtil
.
HENG_FENG_REQ_SERVER_LATITUDE
,
mLatitude
);
jsonBody
.
put
(
PreferencesUtil
.
HENG_FENG_REQ_SERVER_TYPE
,
mType
);
jsonBody
.
put
(
PreferencesUtil
.
HENG_FENG_REQ_SERVER_POWER
,
Settings
.
System
.
getInt
(
getContentResolver
(),
"hengfeng_sos_battery_level"
,
0
));
jsonBody
.
put
(
PreferencesUtil
.
HENG_FENG_REQ_SERVER_GCS
,
2
);
jsonBody
.
put
(
PreferencesUtil
.
HENG_FENG_REQ_SERVER_SIGN
,
PhoneUtils
.
getHengdaSign
(
jsonBody
));
}
catch
(
JSONException
x
)
{
...
...
app/src/main/java/com/toscl/location/hengfeng/util/PreferencesUtil.java
View file @
3d3280c
...
...
@@ -20,6 +20,7 @@ public class PreferencesUtil {
public
final
static
String
HENG_FENG_REQ_SERVER_LONGITUDE
=
"lng"
;
public
final
static
String
HENG_FENG_REQ_SERVER_LATITUDE
=
"lat"
;
public
final
static
String
HENG_FENG_REQ_SERVER_TYPE
=
"type"
;
public
final
static
String
HENG_FENG_REQ_SERVER_POWER
=
"power"
;
// Geographical coordinate system
public
final
static
String
HENG_FENG_REQ_SERVER_GCS
=
"gcs"
;
public
final
static
String
HENG_FENG_REQ_SERVER_SIGN
=
"sign"
;
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment