I need to read data constantly from USB (50ms interval at least) and update several View
's at the same time.
Updating View
's can be quite easily achieved by using a Handler
, but since USB reading performs too much work and there's no need to touch the UI Thread, it has to be done on a different thread.
I have read a few questions like this about executing AsyncTask
repeatedly but please correct me if I'm wrong: it seems it's not a good way to go.
What are the best ways to execute background work repeatedly in Android?