在蓝牙回调接口public void onLeScan(BluetoothDevice device, int arg1, byte[] arg2)里面调用adpter.notifyDataSetChanged(),一直刷不出列表。仔细查看log后,发现该回调里不可以操作UI(应该是不在主线程)。改到主线程里操作即可。

相关文章:

  • 2021-05-28
  • 2021-11-11
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-12
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案