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 5938bf2d
authored
Sep 03, 2019
by
cuiliang.shi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1. 其他错误 amapLocation is null处理
2. 设置中 本机号码 显示修改
1 parent
0e07956c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
app/src/main/java/com/toscl/location/hengfeng/LocationService.java
app/src/main/res/layout/service_settting.xml
app/src/main/java/com/toscl/location/hengfeng/LocationService.java
View file @
5938bf2
...
...
@@ -40,8 +40,8 @@ import org.json.JSONObject;
public
class
LocationService
extends
Service
{
private
String
TAG
=
"LocationService"
;
private
String
mLongitude
;
private
String
mLatitude
;
private
String
mLongitude
=
""
;
private
String
mLatitude
=
""
;
private
double
mWifiLatitude
=
0
;
private
double
mWifiLongitude
=
0
;
private
double
mGpsLatitude
=
0
;
...
...
@@ -350,6 +350,11 @@ public class LocationService extends Service {
Log
.
d
(
TAG
,
"handlerGpsError"
);
mErrorCount
++;
if
(
mErrorCount
>
6
)
{
if
(!
""
.
equals
(
mLongitude
)
&&
!
""
.
equals
(
mLatitude
)){
postLocationInfo
();
}
handleGpsRelease
();
alarmToSendBroadcastForNextStartService
();
}
...
...
app/src/main/res/layout/service_settting.xml
View file @
5938bf2
...
...
@@ -20,7 +20,7 @@
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"
套餐手机号
:"
android:text=
"
本机号码
:"
android:textSize=
"18px"
/>
<LinearLayout
...
...
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