I want to monitor the velocity of a phone. I can do this by looking at
accelerometer data over the last 30 seconds, saving about one sample
every 0.1 seconds (300 samples) and applying a sliding filter to the
data. If I create a service to do this, what's the best way to
preserve the state of the filter (600 doubles) between an onDestroy
and a subsequent onCreate? I can set up an SQLite table to hold the
values but that's a lot of extra coding and processing overhead. Is
there a better way?

-- 
You received this message because you are subscribed to the Google Groups 
"Android Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/android-discuss?hl=en.

Reply via email to