Cyclic file reader thread using deprecated methods
|Target version:||2.0 Multiple models|
Android has deprecated Thread.stop()
I suggest implenting threads either as done in the cyclic update part of the dashboard, or the existing cyclic Simulator class (using Handlers and runnable)
Or as a full class like done in the DataLogger (class RawLogger for instance) - Implementing Runnable
#6 Updated by Hans Cappelle about 6 years ago
- Status changed from New to In Progress
Espen Solbu wrote:
I do not want a service for it. I would like it done the same way the exisiting cyclic simulator runs. Or alternately the way the individual dataloggers work. Async Task is not good for this, as order is not deterministic.
OK I see. With the Handler.postDelayed(Runnable) and then Runnable iterating over bytes sending a single frame per run (delayed over 10s). I will have to load the files into byte arrays up front then.