I'm making an app which constantly receives Heart Rate from a bluetooth device in a serial (Byte) format. I want to be constantly saving this data on to a file on the droid. Whats the best way?
The data should not be overwritten, rather added to the end of file.
Kind of like notepad applications.
I have seen a few options like database or file stream. I have no experience with database. And with file stream I'm just worried that if its a big file, I have to read the file, and write at the end of this (this being done at every data received from HR can be quiet time consuming)
Please advise, and possibly some tutorials for me to look at?
Use databases, you'll get along in no time, just look for examples or read the Documentation. Try keeping record for week or month. Avoid adding on the infinite number of information.
Here is awsome tutorial on databases: