Is it possible to collect sensor data using AsyncTask?
<p>Suppose I am trying to collect data from sensors at a high rate, and write it to a file. The collection is controlled from the UI by "start" and "stop" buttons. Does it make any sense to write a class like this:</p>

<pre><code>protected class DataLogger extends AsyncTask&lt;Void, Void, Void&gt; implements SensorEventListener
</code></pre>

<p>of should I be using threads directly?  Empirically, I find that using <code>AsyncTask</code> like this locks up my UI, but I can't quite put my finger on why.</p>
