Posts

Showing posts from August, 2021

Android versions are confusing!

Image
 By Austin Evans     As the title states my main focus this past week was to get the Import and Export working for the android version 7 to 11. The funny thing is that each version of android changes the way a file is stored on the phone. Like in Android 11 we can save a file to the external storage without an extension using something called a MediaStore. However, in android 10 we need that extension to save the file directly. These changes to the save file method for the file cause a problem with each of the versions. Although through trial and error I was able to get the Android 10 to import a file. Since the file is written through the app, so having the different versions won't effort how the file is written. Only saving the file cause a problem. So how did I fix this, well I got a little help online and asking questions with a person I am working with. Through that, I figured out how i.e. the mention of the extension. With that in play, Andriod 10 and 11 are working...

Import and Exports continue

Image
 By Austin Evans      This week I worked on getting the Imports and exports fully functional. For the export, I was tasked with having the file be formatted. Since we are saving the file as a CSV I need to find a way to have to split the data in the file. I first needed to find where I can get the information for the routine history and ended up using the routine class for the information. Since the routines are always increasing in the list I had it loop. After that, I called each function that matches the column-like name I called cRoutine.getM_szName(), having the name saved for the exercise name. I did the same thing for weight, height, and reps. Finally, have the information save to the file and we get this:      For the import I was able to get it to work for android 11.  Here I made another acivity and class for the import, I have a permission function in the import where if the user allows the app then the file would be imported. In the be...

Warm-ups and Cool-Downs

Image
 By Austin Evans      This past week I focus on getting the Warms ups and Cooldowns looking the correct way on the app. I also got the export and import working in the setting part of the app. For the warms ups, we wanted to have them appear at the top of the routine play part of the app.      I also went through the exercise library that we have and manually picked out what were be the best warm-ups and create a few stretches for the cooldowns. Getting the warm-ups to appear at the top of the page was a bit difficult since the way the class is laid out by using a list view. So I had to go and create a header view  For the import I created another class where I can have the user pick a CSV file. The code is simple but doesn't work with android 10 or lower. For the export, I am having the app call an Arraylist of the routine history. However, I haven't got the correct format now but I was able to get the file to save to the local storage on the pho...

Warm-ups and Cool-downs, While Import and Export doesn't work

Image
 By Austin Evans     This past week has been a bit challenging. I was tasked with generating warm-ups and cool-downs in the app. I was also tasked with getting the import function and export function to work, but I haven't got it to fully work. BUT let's talk about the warm-ups and cool-downs, warm-ups and cool-downs show up in the routine play page where the user can edit the number of reps and weight. As of right now, there are one warm-up and one cool-down. As seen below: The warm-ups only show in this part of the app. Along with the cool-downs. The user can also click on the warm-up and it will show the exercise. Get the warm-ups to work wasn't really that hard since I was focusing on the routinePlay class I just needed to add a function for the warm-up and a function for the cool-down. I got a lot of help from a tutor and read through the code.      Since this is an exercise app and warm-ups and cool-downs are important for routine runs. Getting this u...

Debugging, Exporting, and making changes to the radar chart

 By Austin Evans         This week I started something new, I dove right this learning how to export a CSV file. For the file, it's a generic file being saved as a CSV file. Since most workout apps have a opion to export either their body metrics or the exercise. I was able to get the app to open a window to choose where the file will be saved but I couldn't get it to save as of right now.      Next I changed the way the look how the by having the radar data pop out. I kept the default color of the chart and used the color blue to filled out the line. I also was able to get the row click in the stats table up and running. The rows doesn't go to anywhere but just shows a toast message showing that it works.      How I appoarch the problem for the CSV file is by finding documents able CSV files in java. However, I found that a youtube video by a youtuber named Tech Tribe. He helped me understand how the CSV file in Java works. It's a ...