Android data storage for plotting graph
<p>In my android application, i need to plot a graph showing the last 2 hours of data updated in 30 second interval. </p>

<p>Also I would like to update the data on the file. At any time, the data file should contain only the most recent 2 hours of data. What is the best way for it since after two hours, every second a data element has to be removed from the top of the file and new data added to the bottom of the file and the file data should start from the first line.</p>

<p>Can someone suggest me, the best way to store data. So that i can read simultaneously from it and plot it at the same time.</p>
