i was making a bluetooth application using the bluetooth chat sample in the sdk.
and i need to modify it to work on new activites that i create where i just want to use the send and recieve commands in the main class such as "sendMessage(String)" function in new acitivites i create.
i want to use the send and recieve string functios after making a connection and pairing of coarse in main activity, i don't want to repeat same actions in every activity.
this question has been asked many times in stackoverflow but i didn't understand any of these answers.
so i need someone to tell me exactly what to do with examples and coding and specifically using the bluetooth chat sample in the sdk, because i have no time to try things myself because this envolves my graduation project.