Handle an event on the Main Class in Android

view full story

http://stackoverflow.com – I am developping for Android and i have the following: -The MainActivity with its class. -A bluetooth serial port class that I created (implements functions like start(), connect(), sendString()) and so on. On the Main class, i create an Object from the BT class. I am able to perform everything, but i have a question: To receive data from the bluetooth serial connection, a new thread is created inside the BT class, when data is received I can do some action inside the class file, But how can I send the String of data to the main application for example? Is there an option like callback, eve (HowTos)