mWater / mWater-Android-App

An Android App that snaps a picture of a petrifilm, counts the bacteria and posts the counts on a server for the mWater project
https://github.com/AndroidImageProcessing
GNU General Public License v3.0
24 stars 16 forks source link

Use SharedPreferences to store state between app launches #10

Closed cesine closed 12 years ago

cesine commented 12 years ago

set up shared preferences to hold state like the output dir, the server url the experimenter id of the person who is taking the water samples etc.

cesine commented 12 years ago

https://github.com/AndroidImageProcessing/AndroidBacteriaImageProcessing/commit/14e3907ef8ded062fb48b18b4cb4a1c7b09ab6f7

cesine commented 12 years ago

https://github.com/AndroidImageProcessing/AndroidBacteriaImageProcessing/commit/8b75a9d04c753adb8f11a54e1f93eb869b8dcef7

cesine commented 12 years ago

https://github.com/AndroidImageProcessing/AndroidBacteriaImageProcessing/commit/b606d8cd7cd174ec256703c8b6988d508d99eb32

using the id of the table row for part of the sample codes, this should be acceptable..codes come out with whaterver the userid is and the table row from the db of that android. the images are always unique as theya re saved with a unix epoch timestamp.