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
6061912e
Commit
6061912e
authored
Jun 13, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GPSテストビルド
parent
40997eca
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVCheckContentViewActivity.java
+12
-0
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVCheckContentViewActivity.java
View file @
6061912e
...
...
@@ -11,6 +11,7 @@ import android.media.AudioManager;
import
android.media.MediaPlayer
;
import
android.os.Build
;
import
android.os.Bundle
;
import
android.provider.Settings
;
import
android.widget.Toast
;
import
com.nttdocomo.android.sdaiflib.BeaconData
;
...
...
@@ -296,7 +297,18 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
if
(
requestBluetoothFeature
(
REQUEST_CODE_ENABLEBLUETOOTH_OKUDAKE
))
{
LocationManager
lm
=
(
LocationManager
)
this
.
getSystemService
(
this
.
LOCATION_SERVICE
);
final
boolean
gpsEnabled
=
lm
.
isProviderEnabled
(
LocationManager
.
GPS_PROVIDER
);
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
)
{
ABookPermissionHelper
helper
=
new
ABookPermissionHelper
(
this
,
Constant
.
ABookPermissionType
.
AccessFineLocation
,
null
);
...
...
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