1) Display the values on the screen and have the user write them down. 2) Learn how to write to a file.
3) Use a constantly-running server to store them. On Jul 29, 10:37 am, Bret Foreman <bret.fore...@gmail.com> wrote: > 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 Beginners" group. NEW! Try asking and tagging your question on Stack Overflow at http://stackoverflow.com/questions/tagged/android To unsubscribe from this group, send email to android-beginners+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en