I'm working on an app that shows time progress bars.
I wanted the minute progress bar in this app to tick up 1% at a time. I knew that with 60000 milliseconds in a minute, this meant that updating the progress bar every 600 milliseconds should do the trick.
My calculations weren't originally precise enough, however, and you can see that before the progress bar would skip 1-3% instead of 1% at a time. This was because I was doing calculations with seconds as an Int.
After I switched to doing my division with Longs instead of Integers it worked great!
Code on GitHub: https://github.com/amandafarrell/TimeProgressBars
"Build the life you want to live" is a phrase that changed my life. I learned it while stuck in a soul-sucking accounting job. I was feeling disillusioned with my new career. I wanted to help people directly, not make rich corporations even richer. I made a pivot. I learned to code Android apps and uploaded a handful of them to the Google Play Store. Coding didn't stick as a new career path for me, but of all the things I've made in the past decade, those little apps still make me so proud and happy. I finally felt like I was helping people. I received a lot of nice feedback from people all over the world. One person even told me they used my little Change Calculator to help their kid get a job. I made that app 8 years ago, and I love to see people are still using it. I'm learning that "building the life I want to live" doesn't mean I have to wait for some grand moment when everything finally comes together. Even the small stuff I'm building...
Comments
Post a Comment