Developer Aspirations

YAPB - Yet Another Programming Blog

Android

Wednesday

13

January 2016

Don't Use an EventBus on Mobile

by Colin Miller, on Android, development, EventBus

A practice that I've noticed infecting some mobile developers is attempting to use an EventBus in replacement of method calls. The idea being to introduce high levels of decoupling where publishers of events need to never know who will be consuming them, and for consumers to not require knowledge of the producers. While this sounds great in theory, in practice it can suffer from overly engineered and complicated code that…

Friday

14

November 2014

Cutoff Thumbnails in Android MediaStore

by Colin Miller, on Android, Concurrency, LinkedIn

I discovered a really wonderful cocurrency issue the other day while I was working on the LinkedIn application. It appeared that when a user takes a photo to upload as part of a status update that the thumbnail would be incomplete. The image was stored on the filesystem correctly and would upload fine, but the thumbnail in the app would be cut off. More interestingly, the thumbnail in the phone's…

Thursday

07

October 2010

How to Add Text Over a Progress Bar on Android

by Colin Miller, on Android, development

As a minor reprieve from my usual meandering babble, here's a tidbit that's actually useful in a practical sense. Adding text on a progress bar on Android. The ProgressBar class on android is a fickle thing. By default, it starts out in a state of a constantly moving circle indicating generic 'progress' being made on whatever task it is that you're doing. It's nice for any process where you have…

Friday

01

October 2010

October Challenge, The Beginning

by Colin Miller, on Android, video games

In a stunning display of continuity, I'm going to be talking about my progress on completing PoV's Challenge. Since it's October, the challenge is in full swing. I've decided to take on this challenge, and it puts a time limit and completion goal in front of me. So to start off, I'd like to discuss a bit about the eventual mechanics of Stat Game. [caption id="attachment_294" align="aligncenter"…

Monday

27

September 2010

On Minecraft and Indie Development

by Colin Miller, on Android, Computer programming, development, iPhone, Musings, Ramblings

As has happened to Gabe from Penny Arcade, I have gotten bit by the minecraft bug. After having set up a server at colintmiller.com, I launched into a monster-freeish world with a friend of mine to see what we could build. What seemed like a silly game to waste 20 minutes on turned into multiple nights of staying up until 2am and being really tired the next day. Minecraft…

Thursday

17

June 2010

Discipline in Coding

by Colin Miller, on Android, Design, development, Reusable Code, Testing

The title is perhaps slightly misleading. I think overall that coding should be fun. Figuring out how to do something and getting it to work is a mental exercise that can be pretty enjoyable, especially when you finally have something finished that you can get other people to play with. However, when launching into learning a new language, platform, framework, or basically anything outside of your regular development comfort zone,…