Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
49ff9960
Commit
49ff9960
authored
Jun 13, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GPSテストビルド
parent
6061912e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/PairingSettingActivity.java
+13
-0
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/PairingSettingActivity.java
View file @
49ff9960
...
@@ -13,6 +13,7 @@ import android.location.LocationManager;
...
@@ -13,6 +13,7 @@ import android.location.LocationManager;
import
android.os.Build
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.os.Bundle
;
import
android.os.Handler
;
import
android.os.Handler
;
import
android.provider.Settings
;
import
android.view.View
;
import
android.view.View
;
import
android.widget.AdapterView
;
import
android.widget.AdapterView
;
import
android.widget.Button
;
import
android.widget.Button
;
...
@@ -215,6 +216,18 @@ public class PairingSettingActivity extends ABVUIActivity {
...
@@ -215,6 +216,18 @@ public class PairingSettingActivity extends ABVUIActivity {
Logger
.
i
(
"-------------------lm : "
+
(
lm
!=
null
?
"is not null"
:
"is null"
));
Logger
.
i
(
"-------------------lm : "
+
(
lm
!=
null
?
"is not null"
:
"is null"
));
Logger
.
i
(
"-------------------gpsEnabled : "
+
gpsEnabled
);
Logger
.
i
(
"-------------------gpsEnabled : "
+
gpsEnabled
);
Logger
.
i
(
"-------------------network : "
+
network
);
Logger
.
i
(
"-------------------network : "
+
network
);
String
gpsStatus
=
android
.
provider
.
Settings
.
Secure
.
getString
(
getContentResolver
(),
Settings
.
Secure
.
LOCATION_PROVIDERS_ALLOWED
);
if
(
gpsStatus
.
indexOf
(
"gps"
,
0
)
<
0
)
{
// Toastを表示
Toast
.
makeText
(
getApplicationContext
(),
"GPSは無効です"
,
Toast
.
LENGTH_LONG
).
show
();
// GPSが有効だった場合
}
else
{
// Toastを表示
Toast
.
makeText
(
getApplicationContext
(),
"GPSは有効です"
,
Toast
.
LENGTH_LONG
).
show
();
}
//端末側の位置情報許可チェック
//端末側の位置情報許可チェック
if
(!
gpsEnabled
)
{
if
(!
gpsEnabled
)
{
showSimpleAlertDialog
(
R
.
string
.
set_pairing_central_thermometer
,
R
.
string
.
msg_location_device_no_allow
);
showSimpleAlertDialog
(
R
.
string
.
set_pairing_central_thermometer
,
R
.
string
.
msg_location_device_no_allow
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment