Android App to be used for scouting.
- Data entry as well as viewing data
- Bluetooth syncing to a master device
- To change the data that is entered you just have to change the config file
- Can transfer files to a computer over usb (requires a seperate program)
config file located in assets folder The questions are located in the performance table, the types of questiosn are string (asks the question and lets a the user type in answer) , number (asks the question and let the user type in a number), and YorN (ask the user the question and lets them choose yes or no) When updating the config file make sure to clear the app's cache on the devices.
Class Structure: MainActivity give the user buttons to enter data, view data, or use bluetooth to sync Enter data button -> EnterDataActivity View data button -> ViewDataActivity Bluetooth button -> BluetoothActivity
EnterDataActivity lets the user enter data The class generates a linear layout with elements corresponding the dataEnteryViews array in UIDatatbaseInterface the elements of the array is DataEnteryRow When the submit button is pressed it takes the current view and passes it to UIDatabaseInterace.submitDataWEntery()
ViewDatatActiivty lets the user view the data by database table It gets the list of tables from UIDatatbaseInterface.getTableNames() and put them in a spinner for the user to select It creates a grid view to view the data using the ViewDataAdapter When an item from the spinner is selected UIDataBaseInterface.setCUrrentDataViewTable is called with the name of the selected table and then the grid view is recreated.
ViewDataAdapter takes the data in the database and puts it into the grid view for the user to see It gets the table to display from UIDatabaseInterace.getCurrentDataViewTable() The method getView takes the position of currentView as well as parent and gets a cursor from the database based on a select from table. and for the given position, it puts all the necessary data in a textView to return and then be put in the gridView
UIDatabaseInterface acts as a interface between the UI and the database making it possible to transfer data back and forth