I'm developing an app that calculates an algorithm at the background. Since the application starts, till it ends. This is a tracking algorithm (with now further explanation about the algorithm operation principles).
So the background task need to be calculated at all screens on the app regardless of user actions on app, clicks, wifi communication messages (already done on app) , everything needs to be done while the algorithm is running at the background.
Is it an AsyncTask ? If not what else? The application is running and the algorithm is being calculated at a specific screen now, i want to make it a background process with no respect to current application screen.
An example will be appreciated
P.S- Further developing , do not need to be discussed if not needed right now: 1. The next stage is to insert an indication (virtual bulb) that change between to states depends on algorithm result each time. 2. The algorithm is getting data from USB device attached to the phone as the phone is the host using FTDI chip.