|
@@ -81,8 +81,8 @@ public class LoginActivityPhone extends BaseActivity implements View.OnClickList
|
|
|
|
|
|
@Override
|
|
|
protected void initData() {
|
|
|
- applyPermission();
|
|
|
- checkBT();
|
|
|
+// applyPermission();
|
|
|
+// checkBT();
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -183,12 +183,12 @@ public class LoginActivityPhone extends BaseActivity implements View.OnClickList
|
|
|
output.setText("扫描成功,正在连接中...");
|
|
|
|
|
|
//启动蓝牙信标扫描服务
|
|
|
- final Intent intent = new Intent(this, BeaconService.class);
|
|
|
- intent.putExtra(BeaconService.SERVER_ID_KEY, serverId);
|
|
|
- intent.putExtra(BeaconService.DEPARTMENTS_ID_KEY, departmentsId);
|
|
|
- intent.putExtra(BeaconService.NURSE_ID_KEY, nurseID);
|
|
|
- intent.putExtra(BeaconService.NURSE_NAME_KEY, nurseName);
|
|
|
- startService(intent);
|
|
|
+// final Intent intent = new Intent(this, BeaconService.class);
|
|
|
+// intent.putExtra(BeaconService.SERVER_ID_KEY, serverId);
|
|
|
+// intent.putExtra(BeaconService.DEPARTMENTS_ID_KEY, departmentsId);
|
|
|
+// intent.putExtra(BeaconService.NURSE_ID_KEY, nurseID);
|
|
|
+// intent.putExtra(BeaconService.NURSE_NAME_KEY, nurseName);
|
|
|
+// startService(intent);
|
|
|
}
|
|
|
} else {
|
|
|
ToastUtil.showToast(LoginActivityPhone.this, "非法二维码!");
|
|
@@ -196,7 +196,7 @@ public class LoginActivityPhone extends BaseActivity implements View.OnClickList
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
LogUtil.d("ZXResult", "扫描结果为:Exception");
|
|
|
- output.setText("扫描结果为:Exception");
|
|
|
+ output.setText("扫描结果为:Exception"+e.getMessage());
|
|
|
}
|
|
|
}
|
|
|
}
|