Heavy calculation on background thread
<p>Im developing an application in Android that receives real-time data (via BT) and needs to process it and show it in a graph.
The processing part is quite heavy so I want to do it in background.
I've been reading about my possible options:</p>

<p>New Service with a separate thread -> I don't need to have a different lifecycle (processing will be finished as soon as the application closes).</p>

<p>Runnable in a new thread -> I can only invoke the start method once (and i will need to run the processing every 4 seconds or so..)</p>

<p>AsyncTask -> Same problem as before, i can only call "execute" once.</p>

<p>What is my best option?
Is it viable (in terms of memory and performance) to create a new AsyncTask (or a new Theread) everytime I want to process the data (every 3 or 4 seconds..)?</p>

<p>Thank you</p>
