man_or_astroma
Lurker
Hello,
Im using BluetoothChat example in order to talk with an arduino. So for the sample code works fine, my problem is that ive created another activity class and i want to send and receive bluetooth data from this activity also. What is the best way to do this?For example how i can use the sendMessage(); function that is placed at BluetoothChat.java to my new activity SecondView.java?
thank you
Im using BluetoothChat example in order to talk with an arduino. So for the sample code works fine, my problem is that ive created another activity class and i want to send and receive bluetooth data from this activity also. What is the best way to do this?For example how i can use the sendMessage(); function that is placed at BluetoothChat.java to my new activity SecondView.java?
thank you