Save Logging Data to .csv and output
Are there any examples of saving Log data to CSV and outputting to local directory? I have tried so many different things, and I cannot get it to work with the sensor.
I have a button that starts the logging and a button that stops the logging and downloads the entries. However, every time I try to integrate normal CSV writing that would be done in Java, it does not work. I have not found any examples online that work with the sensor. Log.i messages say that logging has started/stopped/downloaded, etc.
If anyone has information/code samples they could share, I would appreciate it. I have been at this for 2 weeks and it's making me super frustrated that I can't find a good example for logging. (I have found streaming examples, but they don't seem to work with logging.)
Comments
For additional info - I used the Starter App (Android - Java) as to get going. Basic functionality is working as expected. My code for the Start / Stop / Info buttons is in the DeviceSetupActivityFragment.java. I tried to setup the CSV read / write similarly to this blog, which is out of date but should theoretically be easy to adapt. I feel like I am probably missing something obvious in the way the API works with Java, but I have no idea what. If anyone could point me to some code examples I would appreciate it. I have Googled, read Android docs, read the MBientlab docs and done the tutorials.
My Buttons are in the onViewCreated method
Unfortunately saving data to files is not in the scope of the MetaWear APis. You just need to fine a proper tutorial on the net.
Shortly, I will be putting the MetaBase Java App source code online (on github). This does have a save file functionality which you can also look at.
Thanks Laura. I'll keep plugging away at it in the meantime. I know it's something silly I'm missing as it usually is with coding.