I am not that experienced with Java/Android programming.
I have an array of floats that i have logged, and i want to plot them against time.
I just want to see what the data looks like, I don’t really need to plot it in the app itself, although it would be handy. I am looking for the simplest possible way to do this.
I have looked around at libraries (graph view and achartengine) which plot graphs in the app, but when i imported them into eclipse, there were errors everywhere on the demo code.
Maybe it would be easier to export the array so I can plot it on the computer, e.g. to a csv file (for excel)? But, I can only find stuff on databases with csv files. Someone please point me in the simplest direction! 😀
Thanks
I am not that experienced with Java/Android programming. I have an array of floats
Share
Both ways are quite simple.
You may draw your values at any
Viewby overriding itsdraw(Canvas)method. The thing which will take the most time is converting your values to view’s coordinates, which is actually primitive algebra.You don’t need any tools to generate
*.csvfiles – it has very simple format, you may create it by yourself. In your case its content will look like this:Here is the code, which will produce such file: