hi mate i have in android two thread plus the main thread.
the first thread called A, examine the configuration of some view in the current fragment and send request to the second thread called B that have a channel blutooth toward a serial device. the thread B reads value via bluetooth and send response to thread A.
when thread a receive response, send the response to main thread that set values of response in the view of main thread and send other request to thread A .
But how can use for comunication between thread ?
hi mate i have in android two thread plus the main thread. the first
Share
You could use a Handler if you make sure your thread has a Looper :
http://developer.android.com/reference/android/os/Handler.html