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

Android Content Provider to hold sample data until upload #5

Closed cesine closed 12 years ago

cesine commented 12 years ago

We need a simple db (wrapped in a content provider) with one table to store pending image metadata with a flag (uploaded/notuploaded) that the Queue activity will use to determine which samples need to be uploaded.

The rows will be metadata per image capture.

timestamp, latitude,longitude, filename, sampleuniqueidentifier,userwhotooktheimage,userwhotookthesample(?)

This info will be written to the DB by the TakePicture Activity, and read+written by the ServerSync activity.

cesine commented 12 years ago

https://github.com/AndroidImageProcessing/AndroidBacteriaImageProcessing/commit/7ef1dde2dda83a8cef2af061d56dfa8a6b7ba7fd

Choose to keep the db really really simple, 4 fields id filename on the sdcard metadata in json{lat long timestamp, notes experimenterID etc} uploaded boolean to find files which need to be uploaded when user clicks sync