Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

PNP 3 Final Blog Post

Ok, it's the Final Countdown.


This week I wanted to get the last bit of the core functionality working: actually displaying the workout log.

So the original plan was to pull from Firestore the data for the workouts. However, I couldn't get it working that way, no matter what I tried. Ok, I thought, maybe I can make a database that will store the data on the device, so that way the app can simply pull from saved file on the phone, and we can work on cloud storage later. Making a simple save file on the device shouldn't be that hard, could it?

Yes. Yes it was that hard.


Several hours later, I am happy to report that the database functionality for storing the app data on the device doesn't work. And I have no idea why, as I followed the directions precisely. I started by creating an AppDatabase activity and a WorkoutPlanDao to run the insert and getAllWorkoutPlans functions, and that didn't work. Then I made an AddPlan activity to create the actual plans. This didn't work and I kept revising it until it still didn't work and I started working on a WorkoutRepository before I gave up and went with a much simpler plan.

Now what I have is a simpler method within the CalendarFragment that creates a workout and meal plan out of choosing a random value from arrays of strings, one for the exercise, one for the number of reps, and one for the meal plan. It will create you a plan, and it will display it, but it won't be nearly as detailed as I want it to be.


But it's good enough to use, and even though this project has been an absolute nightmare in humbling experiences, I am glad that I have come so far, especially juggling two classes a month for the past two months.

Support this post

Did you like this post? Tell us

Leave a comment

Log in with your itch.io account to leave a comment.