I am fairly new to android programming and am pretty proficient in java, but have never done threading in java.
The project that I am currently working on I inherited from another programmer (who no longer works at the company). The code that I received was not amazing (2 giant classes, each 1500+ lines). I have spent the better part of a month reorganizing, cleaning it up etc.
I am looking to add a service or a background-thread because this is how it should have been organized in the first place. Being an android novice I read through the dev docs, looked at examples and various tutorials. What are some considerations that I should take into account and how should I decide which is better for my project?
Edit:
The service that I am looking to implement needs to monitor information coming in on the usb input as well as "asking" the device for its software version, for example. Currently if the user starts another activity then the USBManager is stopped. This is not ideal as some information could have been missed when the first activity was paused. If I am going to use a service what is the best way to communicate with it?