Monday, 30 September 2013

collect acceleration data for 10 seconds using AsyncTask

collect acceleration data for 10 seconds using AsyncTask

I have searched for a clear answer for this but I have not found one. The
Android application will start the AsyncTask to collect accelerometer data
once a button is pressed. I want the AsyncTask to stop after 10 seconds.
Basically trying to save a 10 second chunk of acceleration data to be
process by another part of my application. Is there a way to control the
time the AsyncTask runs for?
Thank you.

No comments:

Post a Comment