• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps BluetoothChat example pass data to another class

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
 
Back
Top Bottom