- Jun 22, 2016
-
-
Kristin Muterspaw authored
Fixed the problem where documents under 'note pad' wouldn't show up if they already existed. took out 1 second sampling interval and replaced it with 3.
-
- Jun 17, 2016
-
-
Kristin Muterspaw authored
added the ability to take a picture with a sample. the picture must be taken before the sample is taken. when sample is pressed field day will use the name of the picture file taken after the last sample taken.
-
- Jun 16, 2016
-
-
Kristin Muterspaw authored
-
- Jun 10, 2016
-
-
Kristin Muterspaw authored
Bench sample works, new dropdown list adapter for dropdown menus because the list is List<Pair<String,String>> so the android simple one doesn't work. If Field Day can't find a latitude, longitude, etc for the bench sampling trip, site, sector and spot then it doesn't write to the database and informs the user it can't find the geo information.
-
- Jun 09, 2016
-
-
Kristin Muterspaw authored
-
Kristin Muterspaw authored
-
Kristin Muterspaw authored
-
- Jun 08, 2016
-
-
Kristin Muterspaw authored
new layouts for the main screen, sensor select screen and lab notebook screen. previously the image buttons would get cut off if the screen were smaller. now the layouts use LinearLayouts without hard constants. Tested on charlie's samsung
-
Kristin Muterspaw authored
If the user had never uploaded, downloaded, or cleared in the database actions activity, field day displays 'Never' instead of nothing.
-
- Jun 06, 2016
-
-
Kristin Muterspaw authored
New 'Current Database Information' on the bottom of Database Actions Activity. It displays: last time uploaded, last time downloaded, last time cleaned, current size, current status which could be: empty, initialized but no reading or streaming data, initialized with reading and streaming data, or initialized and just reading or streaming data. Font is set to 'Appearance Medium.' Only layout for portrait mode currently.
-
Kristin Muterspaw authored
Sensor values are now updated on the screen even if streaming or sample button isn't pressed. The Bluetooth Sensors are updated every 1 second. Writing to the database with different logging intervals works again.
-
Kristin Muterspaw authored
-
Kristin Muterspaw authored
SensorSampleService gets updated site, sector or spot from SensorSampleActivity if the user changes it while bound to the service. Streaming button pulses when Field Day is streaming and writing to the database.
-
Kristin Muterspaw authored
Font, cursor and activated edit text for database actions activity is now more visible. Removed BluetoothSensorFragment and BuiltinSensorsFragment since we don't need it anymore.
-
- Jun 03, 2016
-
-
Kristin Muterspaw authored
SensorSampleActivity nows uses SensorSampleService to do all communication with the sensors and writing to the database. If it's a sample then the Service is started, contacts the sensor, writes to the database once, and then the service is told to stop sampling. If it's streaming, then a handler is started to continuously contact and write to the database. The Service now uses a 'Wake Lock' which means the CPU stays on even if the screen is off. Can stream with screen off now.
-
- May 27, 2016
-
-
Kristin Muterspaw authored
Fixed the bug where Field Day would crash on 'Note Book' if the root directory didn't exist or have files in it.
-
Kristin Muterspaw authored
-
- May 26, 2016
-
-
Kristin Muterspaw authored
In My Documents activity, when an item is pressed, Field Day checks whether it's a directory or file. If it's a directory, then the list of files is replaced with the file in the selected directory and the parent directory of that one so the user can go back if they want. If it's a file, it opens My Document Viewer and displays the file. PDFs are rendered as bitmaps in Android, so those are handled separately than text files. My Document Viewer currently only works for PDFs. PDF is rendered!
-
Kristin Muterspaw authored
-
Kristin Muterspaw authored
NotePad opens the 'My Documents' activity. Again, these icons will change, currently just adding the functionality. On My Documents activity, there's a button to download files and asks the user to input the url and base directory path. These directories must be publicly accessible and have indexing enabled. Field Day retrieves a list of files in the base directory path and displays them to the user in an AlertDialog as a multi-check list. If the user clicks on an item that is also a directory, then that task of looking for files is basically executed again using that different path. Once the user has selected all of the file to download, Field Day downloads them one by one, creating local filesystem to match the remote one, all under 'myDocuments' in the external storage directory for Field Day. After downloading, the list of files is displayed to the user -- if it's a folder, a folder icon is shown next to the name, if it's a file, a file icon is shown next to the name. Testing and working with https://cluster.earlham.edu/~buzzlightyear/pdfs/. Opened the downloaded files in the an external file application on the Nexus to check and the Pdfs were downloaded.
-
- May 25, 2016
-
-
Kristin Muterspaw authored
'NotePad' under 'Lab Notebook' opens the activity that will be used for downloading and opening pdfs from a remote server. The icons will change eventually, but since NotePad was already there, I used that for initial code. Inside that activity there's a button that says 'Download Files' that opens a popup asking for the URL and path of the directory. The activity goes out and gets a list of files from that directory on the remote machine (Indexing must be enabling by the web server on the remote machine). The activity shows a multi-select interface where the user can choose which files or folders to download. Checking the boxes and hitting 'Download' doesn't actually do anything right now.
-
- May 23, 2016
-
-
Kristin Muterspaw authored
-
Kristin Muterspaw authored
-
- May 19, 2016
-
-
Kristin Muterspaw authored
Google Drive Connectivity in Lab Notebook -> Google Drive icon. Field Day asks for permission to access stuff created by Field Day. On start it connects to the drive account and queries all of the files and folders in root drive directory that were created by Field Day if any exists. There are two buttons: Create File and Create Folder. The both work and ask for the user to input the name of the file or folder they want. It currently only creates them in the root directory. After creating, Field Day refreshes the list of objects in drive.
-
- May 18, 2016
-
-
Kristin Muterspaw authored
New 'Drive' option under 'Lab Notebook.' It successfully asks for permission to access drive, but nothing more than that right now.
-
Kristin Muterspaw authored
New button in 'Sampling' -> 'Database Actions' that allows the user to clean the local database. If this button is pressed, it confirms that the user what's to clear the database. A backup copy is saved in the external storage: /storage/emulated/0/FieldDay/archive/<date>-readings.db, and all of the local tables are dropped and re-created. These methods are also called upon successfully uploaded tables to the remote database.
-
Kristin Muterspaw authored
'Sampling' -> 'Database Actions' has two buttons, one for uploading and one for setting up local database. Upon clicking 'Upload' Field Day goes out inserts the spots, making sure that the (trip, site, sector, spot) primary key isn't broken on the remote database. After uploading spots, readings are uploaded and then streaming. Field Day uses a transaction by setting 'autoCommit' to false. If any SQLException is caught during this process then the transaction is rolled back. Tested with sampling 'Built In' sensor data, all rows appear in the database on hopper.
-
Kristin Muterspaw authored
Moved the 'Remote Database Setup' from the Settings Fragment to 'Database Actions' under 'Sampling' -> 'Database Actions.'
-
- May 17, 2016
-
-
Kristin Muterspaw authored
New 'Database Actions' icon under the 'Sampling' icon. In the database activity, the user will be able to choose between uploading database tables or setting up the local database from a remote database. Field Day remembers the user's database information until a fresh install.
-
- May 16, 2016
-
-
Kristin Muterspaw authored
There's now a landscape layout for many of the layouts when the device is in landscape mode. It's currently only for 7 inch screens. Plan to make compatible icons and layouts for smaller screens at some point down the road.
-
Kristin Muterspaw authored
A toast is shown if the user tries to write to the database without connecting to a remote db. Something more complex could be done but it is ok for now.
-
Kristin Muterspaw authored
If one of the buttons ('Bluetooth Sensor' or 'Built-In Sensors') is pressed and the user hasn't connected to a remote database then an AlertDialog is shown mentioning so. The Dialog gives the option of connecting to a database or just continuing. It also mentions that if they continue then they can't record anything (that's next to be implemented).
-
- May 13, 2016
-
-
Kristin Muterspaw authored
Fixed writing to external storage problem. Now, it does it step by step. Checks if the directory exists, if it doesn't it creates it. Creates the external file. And writes to it.
-
Kristin Muterspaw authored
-
Kristin Muterspaw authored
If the user selects 'sample' button then Field Day tries to insert the spot selected. If the spot already exists with the trip id, sector id, and site id, then it doesn't write to the database and tells the user that that site already exists. Confirmation toast upon successfully writing to the fieldday_reading table in the database. Fixed the problem where, if the bluetooth sensor was sitting for a little while without interaction, Field Day would list the sensors again below the current list.
-
Kristin Muterspaw authored
Stream button works for built in sensors now. I've given every android available sensor a sensorID that looks like 'and' with a number on the end from 'and1' -> 'and19'. They are also in the database. The platform name is 'Android' and the platform type is 'Built In'
-
Kristin Muterspaw authored
-
Kristin Muterspaw authored
Data model works with reading button, only for Bluetooth sensors. Spot is an edit text field field where the user can only select a number. If the users tries to collect a sample and there's not spot number then Field Day shows a toast and doesn't take a reading. The user should push reread sensor before taking read.
-
Kristin Muterspaw authored
Field Day now works with the new data model, but only for streaming mode and bluetooth devices. Sample mode will come when spot selection is implemented. When the user gets information from a remote database, it keeps the name of the trip selected until the user completely uninstalls the app or reconnects to the database again. The bluetooth devices send "SensorType,SensorID,<Value or Units>" when it talks to Field Day, since there can be two sensors on the same platform that are the same type. sensorID is what distinguishes them. The bluetooth devices don't actually do any quality yet, right now it's just set to 0.
-
- May 12, 2016
-
-
Kristin Muterspaw authored
Selecting trip when setting up database from remote database uses tripID instead of tripName now since only fieldday_trip has tripName, everything else uses tripID.
-