Can I save data for android usable sensor (MOTO 360)?

I have recently been developing Android Carrier Apps (MOTO 360).

My question is, is it possible to save the sensor data as a file in my watch? Or should I send this data back to the Pocket PC for storage?

I am trying to use File directory = Environment.getExternalStoragePublicDirectory("/groundTruth");

to save sensor data to a file in my watch. But it doesn't seem to work.

Since I need to collect real-time accelerometer data for 5-10 minutes, I need to save this data in a file somewhere for future analysis in Matlab.

If any of you have some kind of sensor data collection resource for Android, can you provide me with some sample code as well?

Thanks guys, very much!

+3


source to share


2 answers


You can memorize your sock, yes, but be careful about storage capacity. Just declare the file just like you would on any other android devices and it should do the trick. However, you will have to do a bit of work on the data given by the sensor as the results are stored as arrays. Try to form String with them, or better save them as JSON file.



0


source


I used SharedPreferences

- just like any other android device and it worked. I don't know how much data you want to store, but in this case it should be enough.



0


source







All Articles