我正在使用 HC-05 蓝牙模块制作 Android 和 Arduino 蓝牙通信器。直到昨天还可以使用,现在基本的数据交换不起作用。蓝牙连接已完成,但每次都会引发此警告,我想知道数据交换是否没有发生此情况。
错误:
V/ViewRootImpl: The specified message queue synchronization barrier token has not been posted or has already been removed
D/ViewRootImpl[LoginScreen]: windowFocusChanged hasFocus=false inTouchMode=true
W/Choreographer: Already have a pending vsync event. There should only be one at a time.
D/DecorView: onWindowFocusChangedFromViewRoot hasFocus: true, DecorView@ee56af5[ActualMainActivity]
D/ViewRootImpl[ActualMainActivity]: windowFocusChanged hasFocus=true inTouchMode=true
D/BluetoothAdapter: java.lang.Throwable
at android.bluetooth.BluetoothAdapter.<init>(BluetoothAdapter.java:762)
at android.bluetooth.BluetoothAdapter.getDefaultAdapter(BluetoothAdapter.java:735)
at com.example.pmedsensometer.SelectDeviceActivity.onCreate(SelectDeviceActivity.java:29)
at android.app.Activity.performCreate(Activity.java:8006)
at android.app.Activity.performCreate(Activity.java:7990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1329)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3584)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3775)
at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2246)
at …
Run Code Online (Sandbox Code Playgroud)