Posts

Showing posts from July, 2021

Notifications

Image
-Written by: Quincy Williams This week, my focus was on notifications. I ran into some issues with getting the notifications to work as there are many different ways to achieve how notifications are displayed to the user and when. The main goal was to be able to have the user control the ability of when the notification is seen or not, based on a setting in the settings activity. This was accessed by shared preferences to be able to detect if the options was set to determine if the notification should fire, via a boolean value. The more difficult issue as figuring out the best way to have the application alert the user with a notification. There were a lot of options but the best option seemed to be using an AlarmManager and receiver to have the notification trigger at a specific time of the day. This required creating three separate classes to house each activity. The notification needed to be built to allow for the user to be able to click on the notification and open the app, so cha...

Rest Timer Pt. 2

Image
-Written by: Quincy Williams This week I worked on cleaning up some issues that I was having with the rest timer. The functionality was present that the timer was able to run if the user entered a time but the values were only allowed in minutes. After doing some research, trying to get two separate values from an edit text field in Android Studio is not the easiest, and I was able to discuss some options with my team and we came up with the idea of having the user be able to choose to use minutes or seconds via a spinner object. This allowed for the same edit text field to be used and also also allow the user to be able to set the time of their choosing. This also allowed for the view to remain simple and clean for the activity. Example of the Rest Timer activity screen From the example above, the user can select the value to be used from the spinner, and based on the spinners option, a boolean value (minutes, seconds) is set that will tell the application how to process conversion of...

Body Metrics Pt. 2/ Rest Timer

Image
Written by: Quincy Williams This week, I focused on creating the rest timer activity and finishing up the body metrics activity for the RepAdvisor app. For the rest timer, I ran into the issue of what was the best way to make the timer easy to use for the user, and this created a few different design issues and a lot of refactoring until I was able to find a simple way to handle how the user can set the timer. The user will be able to set the value of time that they want to rest via an edit text field that they can use a button to fill in the timer value. This will occur via a conversion in the timer java class that will take the users value and convert it to milliseconds and report out as a time based on what the user entered. The updateCountDownText function will handle making sure the timer is set to what the user expects when it is set, paused and stopped. There are other background functions that are in play as well but this function is what makes sure everything stays formatted. ...