Question: Using android studio and Kotlin ( Please show steps and code ) build an offline - friendly Android app that allows a user to track

Using android studio and Kotlin (Please show steps and code)build an offline-friendly Android app that allows a user to track a health aspect of their life and view and scroll through their past entries. To do this, store data without the internet (with a local database)and load and display it in a scrollable list in your app.
For this project, you will choose one (or more)specific metrics to track:
*Nutrition /Calories
*Exercise Sessions
*Moods
*Sleep
*Water/drink consumption
*Etc
GOALS:
*Create a local SQLite database using the Room library
*Define your data to save using Room entities
*Create your own functions to interact with your database using Room DAOs
*Update a RecyclerView with data from a database
Required Features:
*At least one health metric is tracked (based on user input)
*There is a "create entry" UI that prompts users to make their daily entry
*New entries are saved in a database and then updated in the RecyclerView
*On application restart, previously entered entries are preserved (i.e.,are persistent)
*Create a UI for tracking averages and trends in metrics
*Improve and customize the user interface through styling and coloring
Make sure you're wrapping all DB operations in a Coroutine with the IO Dispatcher (lifecycleScope.launch(IO)).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!