android BluetoothChat use send receive methods from another class

后端 未结 2 361
小蘑菇
小蘑菇 2021-01-28 12:31

Hello im using the BluetoothChat example in order to communicate with an arduino. Everything works so far and now i want to access the sendMessage() method in order to be able t

2条回答
  •  故里飘歌
    2021-01-28 13:25

    You need Thread's or AsyncTask for send ant message from Android via Bluetooth. See this simple example: http://english.cxem.net/arduino/arduino5.php

提交回复
热议问题