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
112bda13
Commit
112bda13
authored
Jan 27, 2020
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SPP通信で連続測定時、エラーになる問題対応
parent
43a5620e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVCheckContentViewActivity.java
+5
-2
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVCheckContentViewActivity.java
View file @
112bda13
...
...
@@ -573,6 +573,7 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
mWaitingDialog
.
setButton
(
DialogInterface
.
BUTTON_POSITIVE
,
getResources
().
getString
(
R
.
string
.
pairing_search_stop
),
new
DialogInterface
.
OnClickListener
()
{
@Override
public
void
onClick
(
DialogInterface
dialog
,
int
which
)
{
Logger
.
d
(
TAG
,
"waiting Dialog stop click : "
+
mDeviceType
);
switch
(
mDeviceType
)
{
case
DeviceType
.
centerThermomete
:
case
DeviceType
.
radiationThermomete
:
...
...
@@ -859,13 +860,13 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
JSONObject
sppBluetoothMachineDataJson
=
new
JSONObject
();
sppBluetoothMachineDataJson
.
put
(
ABookKeys
.
TASK_QUESTION_ID
,
mQid
);
sppBluetoothMachineDataJson
.
put
(
"value"
,
strData
);
afterABookCheckApi
(
mCmd
,
""
,
0
,
""
,
sppBluetoothMachineDataJson
.
toString
());
// 値が空ではない場合、成功音を出す。
if
(
strData
!=
null
&&
strData
.
length
()
>
0
)
{
audioPlay
();
}
// 閉じる
dismissWaitngDialog
();
afterABookCheckApi
(
mCmd
,
""
,
0
,
""
,
sppBluetoothMachineDataJson
.
toString
());
}
/**
...
...
@@ -944,6 +945,7 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
* mediaplayerをセットして、mp3を再生するメソッド
*/
private
void
audioPlay
()
{
Logger
.
d
(
"start audio"
);
// mMediaPlayerがnullではない場合は、再生終了されてないと見做し、audioStopメソッドを実行
if
(
mMediaPlayer
!=
null
)
{
Logger
.
v
(
"error not stop audio"
);
...
...
@@ -962,10 +964,11 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
mMediaPlayer
.
setOnCompletionListener
(
new
MediaPlayer
.
OnCompletionListener
()
{
@Override
public
void
onCompletion
(
MediaPlayer
mp
)
{
Logger
.
d
(
"debug"
,
"end of audio"
);
Logger
.
d
(
TAG
,
"end of audio"
);
audioStop
();
}
});
Logger
.
d
(
"start audio2"
);
}
// mediaPlayerを再生終了する
...
...
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