An Android application that tracks the user's sleep quality.
Submitted by: Jospeh Lawter
Time spent: three hours
The following required functionality is complete:
- Create entity using Room annotations.
- Create Data Access Object (DAO) interface.
- Add SQL queries to Data Access Object (DAO).
- Create a Room database.
- Add ViewModel.
- Implement coroutines to separate main/UI thread from other operations.
- Add navigation and ability to record sleep quality.
- Implement button states to prevent incorrect user choice.
- Add Snackbar message indicating the clearing of all data from the database.
Here's a walkthrough of implemented user stories:
This app was pretty confusing. A lot of the concepts are still a bit blurry to me, but in general I think I understand most of what's going on here.
Copyright 2019 Joseph Lawter
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.