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
f386bbe4
Commit
f386bbe4
authored
Dec 16, 2019
by
Lee Jaebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
デモ用 検証
parent
bd120dc4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVCheckContentViewActivity.java
+14
-2
No files found.
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVCheckContentViewActivity.java
View file @
f386bbe4
...
...
@@ -34,6 +34,7 @@ import java.text.SimpleDateFormat;
import
java.util.Date
;
import
java.util.Locale
;
import
java.util.Map
;
import
java.util.Set
;
import
java.util.regex.Matcher
;
import
java.util.regex.Pattern
;
...
...
@@ -652,6 +653,7 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
// return; // 以下の処理にかからないようにreturnする
// }
// 登録されている定量計量器がある
showWaitingDialog
(
getString
(
R
.
string
.
weighing_machine
),
getString
(
R
.
string
.
ble_connecting
));
...
...
@@ -659,8 +661,18 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
CommonExecutor
.
execute
(
new
Runnable
()
{
@Override
public
void
run
()
{
BluetoothDevice
bluetoothDevice
=
mBluetoothAdapter
.
getRemoteDevice
(
deviceAddress
);
BluetoothDevice
bluetoothDevice
=
null
;
Set
<
BluetoothDevice
>
pairedDevices
=
mBluetoothAdapter
.
getBondedDevices
();
// getBondedDevices() はエラー時に null を返すのでチェックが必要.
if
(
pairedDevices
!=
null
)
{
for
(
BluetoothDevice
device
:
pairedDevices
)
{
if
(
device
.
getName
().
startsWith
(
"BT"
))
{
bluetoothDevice
=
device
;
break
;
}
}
}
// BluetoothDevice bluetoothDevice = mBluetoothAdapter.getRemoteDevice(bluetoothDevice);
if
(
bluetoothDevice
!=
null
)
{
mBluetoothConnectThread
=
new
BluetoothConnectThread
(
bluetoothDevice
,
new
BluetoothConnectThread
.
bluetoothConnectThreadListener
()
{
...
...
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