Commit 0e7bcc1e by onuma

TR41BluetoothUtilクラスにコールバックインタフェースを作成

parent e56f16bd
...@@ -331,6 +331,12 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity { ...@@ -331,6 +331,12 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter(); mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();
if (mBluetoothAdapter == null) { if (mBluetoothAdapter == null) {
// エラー: Bluetooth なし. // エラー: Bluetooth なし.
Logger.e(TAG,"BluetoothAdapter is null.");
}
// TR41温度計
if (mBluetoothAdapter != null){
} }
} }
...@@ -661,6 +667,8 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity { ...@@ -661,6 +667,8 @@ public class ABVCheckContentViewActivity extends ABVContentViewActivity {
// Activityがバックグラウンドになったときは、受け取らない // Activityがバックグラウンドになったときは、受け取らない
mNfcAdapter.disableForegroundDispatch(ABVCheckContentViewActivity.this); mNfcAdapter.disableForegroundDispatch(ABVCheckContentViewActivity.this);
break; break;
case DeviceType.tr41: // TR41温度計
break;
} }
successAfterAbookCheckAip(""); successAfterAbookCheckAip("");
mWaitingDialog = null; mWaitingDialog = null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment