Today I created a home page that has two buttons. The add Task button is routed to the add task xml which displays two input text boxes, a total task text, and a add task button. The add task button has an onClick event listener that will change the text of a blank text box at the bottom of the screen to show submitted. The routing for the all task is also set up but no functionality at this time.
Today's Lab we dipped into shared preferences and extras. The homepage was updated to have buttons that go to a settings activity as well as task detail activity. On the settings page you are able to update the username shared preference which is displayed in multiple places. The Task Detail buttons on the home page will pass in an extra of the Text adjacent to the button and sets the Title of the task page.
Today's lab was all about setting up a RecyclerView. The buttons on the homepage were instead replaced with a RecyclerViewer that iterates over a list of Tasks and displays them on screen. Each task has an event listener that will pass on extras of the tasks properties which will populate the Task Detail page.
In Today's Lab we implemented Rooms which is a SQL database. A StateEnum was created as the state options for the tasks and was set as one of the properties for the Task class. Functionality was added so that when the user presses the add task button the information gets taken and saved into the database.
All components of Rooms was removed and was replaced by AWS dynamoDB database architecture.
Updated database to have a bidirectional one team to many tasks relationship. Implemented a delete button on the task detail page that will do a get request by id and delete by task. Also set a restriction to only show tasks if the users set team matches the tasks assigned team.
Updated app to include Amplify Cognito. Login page is now default activity on startup and requires user to sign in. If user has not been created then the option to signup and verify is available. On login user is directed to main activity.
Added S3 bucket implementation in order to upload images and Location to pull location of task when created